
Python Basics Quiz
Authored by Nurdaulet Nurlanuly
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
34 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to get all the keys of a dictionary?
keys()
values()
items()
get_keys()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is unordered in Python?
set
list
tuple
string
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default value of a boolean in Python?
False
None
True
0
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will print(bool(0)) output?
False
True
Error
0
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to open a file for writing in Python?
open("file.txt", "w")
open("file.txt", "r")
open("file.txt", "a")
write("file.txt")
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which Python keyword is used to exit a function?
return
break
exit
stop
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a new line in a string in Python?
\n
\t
\\
//
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
29 questions
Unreal Engine 4 - Widget Blueprints
Quiz
•
9th Grade - University
30 questions
8 ci sinif ümumiləşdirici test
Quiz
•
6th Grade - University
30 questions
QUIZ 1 - HTML & Javascript
Quiz
•
University
30 questions
Machine Learning Fundamentals Unit - 1
Quiz
•
University
32 questions
Java Basico
Quiz
•
University
39 questions
Karel Programming
Quiz
•
10th Grade - University
30 questions
PRA-PTS2-INFORMATIKA7
Quiz
•
University
30 questions
Fundamentals of Computers
Quiz
•
5th Grade - 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