
Pre Python Assessment

Quiz
•
Computers
•
8th Grade
•
Hard
Reviews Maloch
Used 25+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
22 questions
Coding basics

Quiz
•
4th - 12th Grade
26 questions
Y8 Python

Quiz
•
8th Grade
22 questions
Revision Grade 8

Quiz
•
8th Grade
30 questions
Python 101 (Activités 4 à 6)

Quiz
•
7th - 9th Grade
25 questions
Mid-Year Java Check

Quiz
•
8th Grade
25 questions
Python MCQ

Quiz
•
6th - 8th Grade
31 questions
Python Unit 02 - Libraries and Variables

Quiz
•
6th - 9th Grade
25 questions
Python_1

Quiz
•
6th - 8th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
20 questions
Copyright and Fair Use

Quiz
•
6th - 8th Grade
15 questions
Computer Components Video

Interactive video
•
8th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade