
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
Informatika kelas 8 semester 2

Quiz
•
8th Grade
15 questions
Sumatif 2-TIK Kelas 8

Quiz
•
8th Grade - University
20 questions
Python 8 klasa

Quiz
•
8th Grade
20 questions
Microsoft Excel Review Part 2

Quiz
•
8th Grade - University
20 questions
CAT 1 BASIC 8 COMPUTING

Quiz
•
8th Grade
20 questions
Informatika

Quiz
•
8th Grade - University
20 questions
Kelas 8 - Halaman 23 (UH Bab 1A - PilGan)

Quiz
•
8th Grade
20 questions
Ulangan Harian Siskom+Analisis Data Kelas 8

Quiz
•
8th Grade
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
8th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
24 questions
Flinn Lab Safety Quiz

Quiz
•
5th - 8th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
6 questions
Unit Zero Cell Phone Policy

Lesson
•
6th - 8th Grade
25 questions
SS8G1

Quiz
•
8th Grade
10 questions
Understanding the Scientific Method

Interactive video
•
5th - 8th Grade