Python Quiz 2

Python Quiz 2

University

8 Qs

quiz-placeholder

Similar activities

Inteligencia de Negocios

Inteligencia de Negocios

University

10 Qs

FIVIZZ: WEEK 11 - PROGRAMMING 2

FIVIZZ: WEEK 11 - PROGRAMMING 2

University

10 Qs

computer Networks

computer Networks

University

10 Qs

Structured/Traditional SDM

Structured/Traditional SDM

University

9 Qs

Tutorium 1 - Prog2

Tutorium 1 - Prog2

University

11 Qs

ALGORITMO

ALGORITMO

University

10 Qs

QUIZ GAME

QUIZ GAME

University

10 Qs

G7 - Ôn tập C1,2

G7 - Ôn tập C1,2

KG - University

10 Qs

Python Quiz 2

Python Quiz 2

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

ENDURO SRM

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of -

print(type("True"))

str

int

bool

Error

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be output of -

print(2=="2")

True

False

0

2

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Evaluate the expression for x = 2:

(x >= 2 and x % 2 == 1)

True

False

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Evaluate the expression for x = 2:

not(x != 2)

True

False

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of -

x=1

if (x>2):

print(x)

2

1

No Output

Error

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Identify the correct order:

if

else

elif

elif

if

else

if

elif

else

else

elif

if

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following code if x = 3:

if (x>0):

print("A")

elif (x>2):

print("B")

else:

print("C")

A

B

C

A
B

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?