
CodeHS Python Unit 3 Review
Quiz
•
Computers
•
7th - 12th Grade
•
Practice Problem
•
Medium
Elizabeth Houston
Used 31+ times
FREE Resource
About this resource
This quiz focuses on fundamental Python programming concepts, specifically covering basic syntax, data types, operators, and program execution. The content is appropriate for grades 9-12, representing an introductory computer science course where students are learning their first programming language. The questions assess core programming knowledge including print statement syntax, variable data types (strings, integers, floats), order of operations in mathematical expressions, modulo operations, exponentiation operators, and the purpose of code comments. Students need to understand how Python interprets different data types, particularly the distinction between numeric and string data, and how the input() function always returns string data regardless of what the user enters. They must also grasp operator precedence, the difference between concatenation and arithmetic operations, and recognize syntax errors that occur when attempting incompatible operations like adding integers to strings. Created by Elizabeth Houston, a Computers teacher in TW who teaches grades 7-12. This quiz serves as an excellent review tool for students completing their third unit of Python programming study, helping reinforce essential programming fundamentals before advancing to more complex topics. Teachers can effectively use this assessment as a formative evaluation to identify knowledge gaps, as homework to reinforce classroom learning, or as a warm-up activity to review previous concepts before introducing new material. The quiz format makes it ideal for quick comprehension checks and can help students build confidence with basic Python syntax and concepts. This assessment aligns with computer science standards including CSTA K-12 Computer Science Standards 3A-AP-13 (creating programs incorporating learned concepts) and 3A-AP-14 (observing intellectual property rights), as students demonstrate understanding of fundamental programming constructs and proper coding practices.
See more
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which Python code segment will display “Hello, world!” on the screen?
"Hello, world!"
print "Hello, world!"
print("Hello, world!")
display Hello, world!
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following Python code display?
print("Hello")
print("World")
HelloWorld
Hello
World
Hello World
"Hello"
"World"
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type is the following variable?
x = "Hi there"
boolean
integer
float
string
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following Python program print?
x = "I am"
y = 6
z = "feet tall"
print(x)
print(y)
print(z)
I am6feet tall
I am 6 feet tall
I am
6
feet tall
x
y
z
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the type of the variable x in the following Python program?
x = input("Enter a number from 1-10: ")
integer
float
string
The type cannot be determined
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following Python program print?
x = 9 + 6 / 3 * 2 - 1
print(x)
12
9
14
20
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following operators is used for exponentiation (exponents) in Python?
^
(( ))
**
%
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
10 questions
TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN
Quiz
•
11th Grade
15 questions
KD 3.1_Aplikasi Pengolah Angka / Spreadsheet
Quiz
•
10th Grade
14 questions
Мотылек
Quiz
•
6th - 8th Grade
10 questions
ICT: WEEK 1
Quiz
•
8th Grade
10 questions
คอมพิวเตอร์ในชีวิตประจำวัน
Quiz
•
12th Grade
11 questions
Computer Education 7
Quiz
•
7th Grade
10 questions
Kuis CMS
Quiz
•
9th Grade
10 questions
Tin học 10 _ Bài 16 _Định dạng văn bản
Quiz
•
10th - 12th 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
