Search Header Logo

Python Basics Quiz

Authored by Hamza Motiyar

Other

9th Grade

Used 1+ times

Python Basics Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

26 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct extension of a Python file?

.py

.python

.pt

.txt

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to print in Python?

echo

print()

cout

display()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbol is used to comment in Python?

//

/**/

#

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python is:

Compiled

Interpreted

Both

None

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is a valid variable name?

2name

@name

name_1

my-name

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of: type(10.5)?

int

float

str

double

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a string?

"True"

True

1

0

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?