Search Header Logo

Python Basics

Authored by Corneille NDJEUMOU

Computers

University

Used 6+ times

Python Basics
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

__ is used to translate a program written in a high-level language into its equivalent machine code.

Compiler

Linker

Loader

Compiler and Linker

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax for the print statement in Python 3.0?

print('Hello, Python!")

PRINT('Hello, Python!')

print('Hello, Python!')

Print("Hello, Python!")

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following symbols is used to make single line comments in Python?

#

//

""

$

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

We cannot comment on multiple lines in a Python program.

True

False

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Python is ___ language.

an interpreted

a compiled

a translated

an assembled

6.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of the following is not a valid identifier?

[NB: Select all that apply]

A_

_A

1A

_1

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be printed if we write print() statement as

PriNt(“Hello Python!”)

Hello Python

Syntax Error

Name Error

Value Error

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers