
Python Programming Quiz

Quiz
•
Information Technology (IT)
•
8th Grade
•
Easy
Fadi Fadi
Used 3+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code print? for i in range(3): print(i)
1 2 3
0 1 2
0 1 2 3
1 2
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code? for letter in "cat": print(letter)
cat
c a t
c t a
a c t
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these loops prints numbers 1 to 5?
for i in range(1, 6): print(i)
for i in range(5): print(i)
for i in range(1, 5): print(i)
for i in range(6): print(i)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will this code do? for i in range(2, 10, 2): print(i)
Print 2 to 10
Print even numbers between 2 and 10
Print 10 numbers
Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which loop will NOT print anything?
for i in range(0): print(i)
for i in range(3): print(i)
for i in range(1): print(i)
for i in range(1, 4): print(i)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to access "banana" from this list? fruits = ["apple", "banana", "cherry"]
fruits(1)
fruits[2]
fruits[1]
fruits[banana]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output? numbers = [10, 20, 30] print(len(numbers))
2
3
4
Error
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Этапы решения задач

Quiz
•
8th Grade
20 questions
List and Tuple Questions

Quiz
•
8th Grade
20 questions
Kuis Ms Word 1

Quiz
•
7th Grade - University
20 questions
Chapter 12 Exam Review

Quiz
•
8th Grade
22 questions
Unit-8 (QB64) Year-6

Quiz
•
6th Grade - University
21 questions
Microsoft Excel Review Part 3

Quiz
•
8th Grade
15 questions
Python Data Structures

Quiz
•
6th - 8th Grade
20 questions
KELAS 7 BAB 6 ANALISIS DATA C. Pengolahan Data Dasar

Quiz
•
7th Grade - University
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade