
Python Basics Quiz
Quiz
•
Information Technology (IT)
•
8th Grade
•
Practice Problem
•
Hard
Fadi Fadi
Used 2+ times
FREE Resource
Enhance your content in a minute
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
38 questions
7 кл-06
Quiz
•
7th Grade - University
30 questions
6а-12
Quiz
•
6th Grade - University
37 questions
Agrinho Campo a cidade 8 e 9 anos
Quiz
•
8th Grade
31 questions
PAS TIK Class VIII
Quiz
•
8th Grade
30 questions
Reviewer
Quiz
•
8th Grade
39 questions
QUIZ ASTS GANJIL 2025
Quiz
•
8th Grade
30 questions
Tes Sumatif Tengah Semester (Ganjil))
Quiz
•
8th Grade
36 questions
SOAL INFORMATIKA KELAS 8 AS 1
Quiz
•
8th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
8 questions
2 Step Word Problems
Quiz
•
KG - University
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
10 questions
Martin Luther King, Jr. For Kids
Interactive video
•
1st - 12th Grade
20 questions
Slope from a Graph
Quiz
•
8th Grade
10 questions
Dr. King's Speech and Its Impact
Interactive video
•
7th - 12th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Laws of Exponents
Quiz
•
8th Grade
