
Python Basics Quiz

Quiz
•
Other
•
9th Grade
•
Medium
Hamza Motiyar
Used 1+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to assign a value to a variable in Python?
x
#
/* */
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does len("hello") return?
4
5
6
Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you take user input in Python 3?
input()
readline()
raw_input()
scanf()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of: python Copy Edit x = 5 y = 2 print(x // y)
2.5
2
3
1
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a list in Python?
{1, 2, 3}
(1, 2, 3)
[1, 2, 3]
1, 2, 3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to define a function in Python?
function myFunc():
def myFunc:
define myFunc():
def myFunc():
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this loop do? python Copy Edit for i in range(3): print(i)
Prints 1 to 3
Prints 0 to 3
Prints 0, 1, 2
Prints 1, 2, 3
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Quotation Marks Practice

Quiz
•
9th - 12th Grade
10 questions
Car Logos

Quiz
•
KG - Professional Dev...
12 questions
Підсумковий тест за II семестр

Quiz
•
7th Grade - University
10 questions
Knowledge Day Quiz

Quiz
•
9th Grade
10 questions
Robotics 2nd Q

Quiz
•
9th Grade
12 questions
Vocabulario, vocabularies, vocabulaires

Quiz
•
5th - 12th Grade
10 questions
Russian 01

Quiz
•
1st Grade - University
15 questions
SUMATIF TENGAH SEMESTER GANJIL TAHUN AJARAN 2024/2025

Quiz
•
1st Grade - 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
Appointment Passes Review

Quiz
•
6th - 8th 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
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Other
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
6 questions
Secondary Safety Quiz

Lesson
•
9th - 12th Grade
20 questions
Biomolecules

Quiz
•
9th Grade