
Prog 1 Python Q1 Practice
Authored by Bonnie Keating
Computers
9th - 12th Grade
Used 19+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
23 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
x = 4.0
y = 2
print(x/y)
2.0
2
9
9.0
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the answer of this expression, 22 % 3 is?
7
1
0
5
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of
4+4//2+2
4
6
8
5
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
a # in Python means the user is trying to...
hashtag
ratio
comment
tic-tac-toe
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
random.randrange(6)
0,1,2,3,4,5,6
1,2,3,4,5,6
0,1,2,3,4,5
1,2,3,4,5
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
random.random() generates a floating point number between _____ and ______
1 and 2
1 and 0
0 and 1
0 and 10
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function truncates the fractional part of given number and returns only the integer or whole part.
int()
round()
oct()
hex()
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?