Search Header Logo

Python Quiz

Authored by Bincy Koshy

Computers

8th Grade

Python Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a decision making statement?

if statement

if else statement

if elif statement

for statement

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Predict the correct output: x=3 if x>2 or x<5 and x==6: print("ok") else: print("no output")

ok

no output

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Predict the correct output:

x,y=2,4

if(x ==y):

print("x and y are equal")

elif(x>y):

print("x is bigger than y")

else:

print("y is bigger than x")

x and y are equal

x is bigger than y

y is bigger than x

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many conditions in if elif statements can be executed?

only 1

two

more than 2

less than 2

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output for the following python code:

if 4+5==10:

        print(“True”)

else:

        print("False”)

print(True”)

       False

True

True

True

False

Error

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?