
Python Programming Quiz
Quiz
•
Information Technology (IT)
•
8th Grade
•
Practice Problem
•
Medium
Fadi Fadi
Used 2+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will this code output? numbers = [1, 2, 3] for n in numbers: print(n + n)
1 2 3
2 4 6
1 4 9
Error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these correctly loops through a list called data?
loop data:
for data in i:
for item in data:
data for item:
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed here? fruits = ["apple", "banana", "cherry"] print(fruits[-2])
apple
banana
cherry
Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times will this print "Hi"? for i in range(1, 5, 2): print("Hi")
1
2
3
4
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code? nums = [1, 3, 5] for n in nums: print(n * 2)
2 4 6
1 3 5
2 6 10
1 6 25
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this function return? def add(x, y=2): return x + y print(add(3))
Error
5
6
"x + y"
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the final value of total? numbers = [2, 4, 6] total = 1 for n in numbers: total *= n
12
48
0
1
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
15 questions
Ôn Tập Môn Tin Học Lớp 3
Quiz
•
3rd Grade - University
15 questions
Quiz sobre el ornitorrinco y la programación
Quiz
•
8th Grade - University
22 questions
Ujian Penilaian Akhir Semester Ganjil Mata Pelajaran Informatika
Quiz
•
8th Grade - University
17 questions
Loģiskās Standartfunkcijas un Diagrammas Exceli
Quiz
•
8th Grade
20 questions
Informatique et nouvelles technologies, le saviez-vous ?
Quiz
•
1st Grade - University
15 questions
Informatika
Quiz
•
6th - 8th Grade
20 questions
Computer Basics Quiz
Quiz
•
7th Grade - University
20 questions
TEKNOLOGI INFORMASI DAN KOMUNIKASI
Quiz
•
8th Grade
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
Discover more resources for Information Technology (IT)
5 questions
Legends, Leaders, & Changemakers: Maya Angelou
Interactive video
•
6th - 8th Grade
10 questions
Understanding Poetry and Literary Devices
Interactive video
•
4th - 8th Grade
15 questions
Product of Powers Property A1 U7
Quiz
•
8th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Laws of Exponents
Quiz
•
8th Grade
16 questions
8th U5L5 Graphs of Functions
Quiz
•
8th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
