
Python Quiz 1
Authored by David Jonathan Alford
Computers
2nd Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these will create a new integer variable (to hold a whole number)?
score=0
score=0.0
score=""
score=False
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What kind of information would be held in a String variable?
whole numbers only
numbers with a decimal point
text: letters, numbers and punctuation
only True or False
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used in Python to show text on the screen?
print()
input()
display()
output()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used in Python to accept an entry typed in by the user?
print()
input()
keyboard()
output()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, which word is used to begin a fixed loop for 5 times?
for
while
repeat
do
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, which word is used to begin a conditional loop for that continues until input is valid?
for
while
repeat
do
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, which symbol is used as the operator to divide one number by another number?
+
-
*
/
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?