Python Logic Pop Quiz

Python Logic Pop Quiz

Professional Development

8 Qs

quiz-placeholder

Similar activities

C String Array MCQs

C String Array MCQs

Professional Development

10 Qs

ระบบคอมพิวเตอร์ ม.2

ระบบคอมพิวเตอร์ ม.2

Professional Development

10 Qs

โปรแกรมกราฟิก 3-4

โปรแกรมกราฟิก 3-4

Professional Development

10 Qs

Driver Installations

Driver Installations

Professional Development

10 Qs

Semangat Belajar

Semangat Belajar

Professional Development

10 Qs

Javascript

Javascript

Professional Development

10 Qs

Arduino Tema 4

Arduino Tema 4

Professional Development

10 Qs

Hen keeping

Hen keeping

Professional Development

10 Qs

Python Logic Pop Quiz

Python Logic Pop Quiz

Assessment

Quiz

Computers

Professional Development

Practice Problem

Medium

Created by

Rokiah Jamil

Used 2+ 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

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):