
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
What does this code print? x = 10 if x > 5: print("Big") else: print("Small")
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 Wayground
38 questions
7-20

Quiz
•
7th Grade - University
35 questions
8кл-18

Quiz
•
8th Grade
39 questions
8-кл-19

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

Quiz
•
8th Grade
35 questions
SOAL INFORMATIKA KELAS 8 GANJIL

Quiz
•
8th Grade
35 questions
5) Ohm’s Law (p. 14) & Series and parallel circuits (p.15)

Quiz
•
8th Grade
39 questions
Informatika Kelas 8 - Berpikir Komputasional

Quiz
•
8th Grade
29 questions
ÔN TẬP THI HK1 MÔN TIN HỌC LỚP 5

Quiz
•
5th Grade - University
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
15 questions
PRIDE

Quiz
•
6th - 8th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
18 questions
7SS - 30a - Budgeting

Quiz
•
6th - 8th Grade
27 questions
Geo #2 Regions

Quiz
•
8th Grade
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
24 questions
Flinn Lab Safety Quiz

Quiz
•
5th - 8th Grade
29 questions
Viking Voyage Day 1 Quiz

Quiz
•
8th Grade