
Python Quiz #1
Authored by Julio Hernandez Saca
Other
8th Grade
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
22 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Question : What is the result of the following Python expression?
A) 11
B) 16
C) 10
D) 26
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Question : Which of the following data types is used to store whole numbers in Python?
A) Float
B) String
C) Integer
D) Boolean
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Question : Which loop is typically used when you know in advance how many times you want to repeat a piece of code?
A) For loop
B) While loop
C) Do-While loop
D) Repeat-Until loop
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Question : What will the following code print?
A) 0 1 2 3 4
B) 1 2 3 4 5
C) 0 1 2 3
D) 1 2 3 4
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Question : In Python, what keyword is used to start an if-else statement?
A) elif
B) else
C) then
D) case
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Question : Which of the following is not a valid variable name in Python?
A) my_variable
B) 123variable
C) _underscore
D) myVariable
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the random.randint(1, 10) function do in Python?
A) Generates a random float between 1 and 10
B) Generates a random integer between 1 and 9
C) Generates a random integer between 1 and 10
D) Generates a random integer between 2 and 10
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
20 questions
Warm and Cold Fronts
Quiz
•
6th - 12th Grade
17 questions
Fundamental Rights Bharat #12
Quiz
•
7th - 12th Grade
25 questions
piggy
Quiz
•
1st - 12th Grade
20 questions
FECHA 1 - WQA - FIFA WORLD CUP
Quiz
•
KG - Professional Dev...
20 questions
Nexos subordinadas adverbiais
Quiz
•
8th Grade
20 questions
REVIEW MIDDLE SCHOOL
Quiz
•
8th - 9th Grade
17 questions
Uji Minda Jawi : Kaedah KT
Quiz
•
1st - 10th Grade
25 questions
2.Sınıf Deneme Sınavı
Quiz
•
KG - University
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 Other
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