
Python Programming Quiz

Quiz
•
Information Technology (IT)
•
8th Grade
•
Medium
Fadi Fadi
Used 2+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
Remedial INFORMATIKA KLS 8 SEMESTER 1 TAHUN 2024-2025

Quiz
•
8th Grade
15 questions
Microsoft Word dan Snipping Tool

Quiz
•
8th Grade
19 questions
Quiz MS Excel 2007

Quiz
•
8th Grade
15 questions
Understanding Integrated Development Environments

Quiz
•
8th Grade
20 questions
Ch. 5 Exam Review

Quiz
•
8th Grade
23 questions
Soal Latihan Blockly kelas 8

Quiz
•
8th Grade - University
20 questions
G08- ICT Q1 Reviewer

Quiz
•
8th Grade
21 questions
PYTHON 1

Quiz
•
6th - 8th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Video Games

Quiz
•
6th - 12th Grade
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
Figurative Language Review

Quiz
•
8th Grade
18 questions
Identifying Functions Practice

Quiz
•
8th Grade
20 questions
Scientific method and variables

Quiz
•
8th Grade
20 questions
Physical and Chemical Changes

Quiz
•
8th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade