
Python Basics Quiz

Quiz
•
Computers
•
University
•
Easy
Nurdaulet Nurlanuly
Used 1+ times
FREE Resource
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
\\
//
Create a free account and access millions of resources
Similar Resources on Wayground
35 questions
python

Quiz
•
11th Grade - University
30 questions
Python Function

Quiz
•
University
30 questions
Python Quiz

Quiz
•
University
32 questions
Midterms DevNet

Quiz
•
University
35 questions
Application Development and Emerging Technologies Quiz 2

Quiz
•
University
30 questions
Python Basic Programming

Quiz
•
University
31 questions
java collections

Quiz
•
University
30 questions
Code debugging - Round 1

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University