
Python Basics Quiz
Quiz
•
Computers
•
8th Grade
•
Practice Problem
•
Medium
Srimoyi Banik
Used 1+ times
FREE Resource
Enhance your content in a minute
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax used to define a while loop in Python?
while condition:
while condition do:
while (condition):
while (condition) do:
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you define a for loop in Python?
for item in sequence:
for x in range(len(sequence)):
for element in list:
for i in range(sequence):
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used for conditional statements in Python?
for
else
switch
if
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you access the elements in a list in Python?
list_name{index}
list_name.get(index)
list_name.index
list_name[index]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What data structure is used to store key-value pairs in Python?
List
Tuple
Set
Dictionary
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which library is commonly used for game development in Python?
Pythongame
GamePy
Pygame
Pygamer
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you check if a key exists in a dictionary in Python?
key not in dictionary
key in dictionary
dictionary[key]
dictionary.has_key(key)
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
10 questions
Types of computer
Quiz
•
8th Grade
9 questions
Chromebook S3 Quiz
Quiz
•
6th - 10th Grade
10 questions
Computer Fundamentals
Quiz
•
2nd - 10th Grade
10 questions
Revision Quiz 2 - Information Technology
Quiz
•
7th - 8th Grade
10 questions
Revision 1
Quiz
•
1st - 10th Grade
10 questions
Technology Quiz - II
Quiz
•
6th - 8th Grade
10 questions
Year 8 ICT Starters On Track Stage 2 - Topic 2: Website
Quiz
•
8th Grade
13 questions
Scratch Final
Quiz
•
6th - 8th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
