
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
37 questions
Operating System Concepts
Quiz
•
University
33 questions
Struktur Data
Quiz
•
University
34 questions
PL PGSQL
Quiz
•
University
30 questions
INTRODUCTION TO APPLICATION SOFTWARE
Quiz
•
1st Grade - University
30 questions
NLSIST-2023_Quiz_Round_No_1
Quiz
•
University
30 questions
MIDTERM EXAM IT ERA
Quiz
•
University
31 questions
Basic Computer Skills-Northstar
Quiz
•
University
35 questions
Algoritma dan Logika Informatika
Quiz
•
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