Search Header Logo

Python Quiz

Authored by Rayyan Uddin

English

University

Used 4+ times

Python Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

print(type([]) is list)

False

True

none

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?
print("Hello World"[::-1])

Hello World 

None

Error

dlroW olleH

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid variable name declaration? 

my_var = “John”

m = 10

9var = “John”

_n = 20

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

True

False

Error

None

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?
print(bool(0))

True

False

Error

None

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

print("abc" == "abc")

True

False

Error

None

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

print((1, 2) + (3, 4))

(1, 2, 3, 4) 

 [1, 2, 3, 4] 

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?