
Python Basics Quiz

Quiz
•
Computers
•
University
•
Easy
Nurdaulet Nurlanuly
Used 1+ times
FREE Resource
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()
{}
[]
()
Create a free account and access millions of resources
Similar Resources on Wayground
36 questions
Repaso Examen Parcial #1: TESI 2213

Quiz
•
University
30 questions
Python Basics Quiz

Quiz
•
University
30 questions
CISC151 Online Game - Winter 2023

Quiz
•
University
30 questions
String

Quiz
•
10th Grade - University
30 questions
Grand Finale Quiz

Quiz
•
University
30 questions
Bài test Python cơ bản

Quiz
•
University
30 questions
BASIC PYTHON

Quiz
•
University
26 questions
Revision and Extended Learning for Lab 1

Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University