Search Header Logo

Grade 11 Python MCQ Quiz

Authored by Remya Pillai

Information Technology (IT)

11th Grade

Used 6+ times

Grade 11 Python MCQ Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Python function is used to iterate over a sequence of numbers by specifying a numeric end value?

range()

for

while

enumerate()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

______________ operators are used to combine two or more comparison statements.

Arithmetic

Logical

Membership

Comparison

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following code snippets will correctly find the type of a variable `a`?

type(a)

gettype(a)

id(a)

datatype(a)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which are the membership operators in Python?

in, not in

is, is not

==, !=

and, or

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following are iterative (loop) statements in Python?

if, elif

for, while

switch, case

try, except

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Predict the output (or error) of this statement: print(x = y = 5)

5 5

Prints nothing

SyntaxError

x = y = 5

7.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Choose immutable datatypes in Python. (select all correct options)

list

tuple

string

set

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?