
PythonL4
Authored by Yusuf Harby
Information Technology (IT)
6th - 8th Grade
Used 1+ 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
If we want to make a choice between 0 and 16 but only pick even numbers ?
random.randrange(0,16,2)
random.randint(0,16)
random.random()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of the following functions can make a selection of many values without repetition ?
choice()
choices()
sample()
randint()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which mode resets all the content of the file and writes in it ?
"a"
"x"
"w"
"r"
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which functions writes in the file ?
open()
write()
close()
append()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the key function in working with files in Python?
open()
write()
close()
append()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which mode create a new file?
"a"
"x"
"w"
"r"
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which functions changes the direction of your turtle?
right()
forward()
backward()
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?