
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
29 questions
Aula 58 - pensamento computacional - 8ano
Quiz
•
8th Grade
33 questions
ICT Chapter 5.2 Health Problems (Practiced)
Quiz
•
8th Grade
33 questions
Ulangan Sumatif Akhir TIK
Quiz
•
8th Grade
32 questions
con ciu nho hỏi nhỏ
Quiz
•
8th Grade
32 questions
Sistematizacija gradiva V razred
Quiz
•
5th Grade - University
30 questions
Teknologi Informatika 7A
Quiz
•
7th Grade - University
30 questions
PTS Informatika Kelas 9
Quiz
•
6th - 8th Grade
39 questions
Informatika Kelas 8 - Berpikir Komputasional
Quiz
•
8th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
5 questions
Legends, Leaders, & Changemakers: Maya Angelou
Interactive video
•
6th - 8th Grade
10 questions
Understanding Poetry and Literary Devices
Interactive video
•
4th - 8th Grade
15 questions
Product of Powers Property A1 U7
Quiz
•
8th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Laws of Exponents
Quiz
•
8th Grade
16 questions
8th U5L5 Graphs of Functions
Quiz
•
8th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
