
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
31 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code output? print(bool(""))
False
True
None
Error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you start a Python script file?
By saving it with a .py extension.
By saving it with a .python extension.
By using #start as the first line.
By running python init in the terminal.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will print([1, 2, 3] + [4, 5]) output?
[1, 2, 3, 4, 5]
12345
[5, 4, 3, 2, 1]
[1, 2, 3][4, 5]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used to repeat a string multiple times in Python?
*
+
&
!
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the is operator do in Python?
Checks if two variables point to the same object.
Compares the values of two variables.
Assigns a value to a variable.
Tests for membership in a sequence.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to round a number in Python?
round()
ceil()
floor()
approx()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create an empty set in Python?
set()
{}
[]
()
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
26 questions
family fun
Quiz
•
1st Grade - Professio...
30 questions
IT security - 3
Quiz
•
9th Grade - University
27 questions
Mock Test
Quiz
•
University
27 questions
Data Structures Midterm Exam WRI
Quiz
•
University
31 questions
Quiz#8: Elements of Film Form
Quiz
•
University
35 questions
SCRATCH
Quiz
•
4th Grade - University
26 questions
CH-9 Medical Image Management and Processing System (MIMPS) Quiz
Quiz
•
University
26 questions
Exploring Computer Vision Concepts by Mohd Mirza
Quiz
•
10th 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