Search Header Logo

Python Programming Quiz

Authored by Mamta Kaundal

Other

12th Grade

Used 2+ times

Python Programming Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

52 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable name in Python?

2variable

my_var

break

var-name

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? print(type("Hello"))

<class 'char'>

<class 'string'>

<class 'str'>

<class 'text'>

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a keyword in Python?

def

class

print

return

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the result of 5 + 3 * 2 in Python?

16

11

13

10

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code? a = 10 b = 5 a, b = b, a print(a, b)

10 5

5 10

5 5

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following data types is immutable in Python?

List

Dictionary

Tuple

Set

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python statement? print(10 > 5 and 5 < 3)

True

False

Error

None

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?