Python Logic Pop Quiz

Python Logic Pop Quiz

Professional Development

8 Qs

quiz-placeholder

Similar activities

FP2: 02 - STRINGS

FP2: 02 - STRINGS

Professional Development

10 Qs

Algoritmos Semana 06

Algoritmos Semana 06

Professional Development

6 Qs

Java Strings and lops

Java Strings and lops

Professional Development

10 Qs

Python Basics

Python Basics

Professional Development

10 Qs

BBDW JS

BBDW JS

Professional Development

8 Qs

A+ Core 1 Printer Troubleshooting

A+ Core 1 Printer Troubleshooting

University - Professional Development

10 Qs

Control de Estructuras_Booleans & Comparisons

Control de Estructuras_Booleans & Comparisons

Professional Development

6 Qs

PYTHON JUNIOR QUIZ-3

PYTHON JUNIOR QUIZ-3

KG - Professional Development

10 Qs

Python Logic Pop Quiz

Python Logic Pop Quiz

Assessment

Quiz

Computers

Professional Development

Medium

Created by

Rokiah Jamil

Used 2+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

What does this code output?

if 10 > 5:

print("Yes")

Yes

No

Error

True

2.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

For a 3-option if statement, what keyword is used to check a second condition after an if?

also

elseif

elif

else

3.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

What will this code print?

score = 45

if score >= 50:

print("Pass")

else:

print("Fail")

Pass

Fail

Error

Nothing

4.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

True or False:

== is used to assign values.

True

False

5.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

Which of the following is a Boolean value in Python?

"True"

1

True

true

6.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

What does else do in a conditional statement?

Checks another condition

Ends the program

Runs when all other if/elif are False

Loops the condition

7.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

Which statement is NOT correct in Python logic?

if age >= 18:

else:

elif age < 10:

elseif age < 10:

8.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

What is the correct syntax to check if x is greater than 5?

if x > 5:

if x gt 5

if x => 5:

if (x more 5):