

Pre Python Assessment
Flashcard
•
Computers
•
8th Grade
•
Practice Problem
•
Hard
Liam Harber
Used 2+ times
FREE Resource
Student preview

19 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Why should variable names not start with numbers in Python?
Back
Because it is not allowed by the Python syntax
2.
FLASHCARD QUESTION
Front
What is the output of the following code snippet?
Back
Hello
3.
FLASHCARD QUESTION
Front
Which of the following is a correct if statement in Python?
- if x = 5:
- if x == 5:
- if (x == 5)
- if x := 5
Back
if x == 5:
4.
FLASHCARD QUESTION
Front
What is the purpose of a for loop in Python?
Back
To execute a block of code a fixed number of times
5.
FLASHCARD QUESTION
Front
What is the output of the following code snippet?
Back
4 5 6 7
6.
FLASHCARD QUESTION
Front
Which of the following is a data type in Python? integer, float, string, All of the above
Back
All of the above
7.
FLASHCARD QUESTION
Front
What will be the output of the following code.
Back
25
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?