What does this code print? x = 10 if x > 5: print("Big") else: print("Small")

Python Basics Quiz

Quiz
•
Information Technology (IT)
•
8th Grade
•
Hard
Fadi Fadi
Used 2+ times
FREE Resource
34 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Small
Big
Error
10
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following correctly uses elif?
if x 5: print("Greater than 5") elif x == 3: print("Exactly 3") else: print("Other")
Greater than 5
Exactly 3
Other
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword ends an if...elif... block?
switch
for
else
end
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this code print? x = 10 if x > 5: print("Hi") print("Bye")
Hi
Hi Bye
Bye
Nothing
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if no if or elif condition is true and there is no else?
It crashes
It runs anyway
Nothing happens
It prints None
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is NOT a valid use of if?
if x:
if x == 10:
if x = 10:
if x != 5:
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Fill in the blank: if temperature > 30: print("Hot") _____ temperature = 8?
True
False
Error
None
Create a free account and access millions of resources
Similar Resources on Quizizz
38 questions
7-20

Quiz
•
7th Grade - University
38 questions
7 кл-06

Quiz
•
7th Grade - University
37 questions
8 класс цикл

Quiz
•
8th Grade - University
30 questions
Quizz Python 2

Quiz
•
6th - 8th Grade
30 questions
REMIDI SUMATIF TENGAH SEMESTER INFORMATIKA KELAS 8

Quiz
•
8th Grade
30 questions
Understanding Fake News and Cybersecurity

Quiz
•
8th Grade
30 questions
Tools TIK

Quiz
•
7th Grade - University
35 questions
SAS Kelas 8

Quiz
•
8th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University
44 questions
El fin del año- 7th

Quiz
•
7th - 12th Grade
40 questions
Word Study Assessment: Roots, Prefixes, Suffixes, and Vocabulary

Quiz
•
8th Grade
17 questions
guess the logo

Quiz
•
8th Grade
16 questions
Function or Non-Function?

Quiz
•
8th - 10th Grade
15 questions
Sentence Fragments and Run-ons

Quiz
•
8th Grade