
Pre Python Assessment
Quiz
•
Computers
•
8th Grade
•
Practice Problem
•
Hard
Reviews Maloch
Used 25+ times
FREE Resource
Enhance your content in a minute
26 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why should variable names not start with numbers in Python?
Because it is a convention
Because it is not allowed by the Python syntax
Because it is confusing
Because it is allowed but not recommended
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to declare a variable in Python?
1variable = 10
variable1 = 10
variable-1 = 10
variable 1 = 10
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name in Python?
my-variable
my variable
my_variable
my.variable
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code snippet?
Hello
5
3
no output
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct if statement in Python?
if x = 5:
if x == 5:`
if (x == 5)
if x := 5
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a for loop in Python?
To execute a block of code once
To execute a block of code a fixed number of times
To execute a block of code indefinitely
To execute a block of code based on a condition
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct syntax for a for loop in Python?
for i in range(5)
for (i = 0; i < 5; i++)
for i in 5
for i to 5
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
23 questions
Spreadsheet Assessment KS3 End of Unit
Quiz
•
6th - 8th Grade
23 questions
Finance Concepts (Banks2)
Quiz
•
8th Grade
25 questions
CPA Inkscape Quiz 01
Quiz
•
7th - 12th Grade
25 questions
TLE Q3 EXAM REVIEWER
Quiz
•
8th Grade
27 questions
Level 2_Chủ đề 5_Test 2 (Powerpoint Quiz)
Quiz
•
6th - 8th Grade
26 questions
Đề 4
Quiz
•
6th - 8th Grade
21 questions
ICT Revision
Quiz
•
8th - 9th Grade
22 questions
ASK T2-PERWAKILAN DATA
Quiz
•
7th - 9th 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
