
Python Programming Quiz

Quiz
•
Computers
•
8th Grade
•
Easy
HoangViet Phannguyen
Used 176+ times
FREE Resource
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if a while loop's condition is never false?
It stops after 10 iterations
It throws an error
It runs infinitely
It runs once
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does len(my_list) return for my_list = [1, 2, 3]?
2
3
1
4
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the error in this code?
4 should be in brackets [4]
my_list[3] should be my_list(3)
Index 3 is out of range
4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does range(1, 4) generate in a for loop?
4, 3, 2, 1
0, 1, 2, 3
1, 2, 3
1, 2, 3, 4
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the code below in Python?
5.77
5.76543
5.76
5.765
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the code below in Python?
2
2.5
1
10
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is wrong with this code?
The second condition will never execute
elif should be else if
num is not defined
Create a free account and access millions of resources
Similar Resources on Wayground
35 questions
informatika kelas 8

Quiz
•
8th Grade
40 questions
year 3 QUIZ 3 2nd term

Quiz
•
3rd Grade - University
40 questions
Ucertify Programming and Logic Review

Quiz
•
7th - 8th Grade
40 questions
Y9 Loops and Ifs

Quiz
•
8th - 12th Grade
36 questions
7.2 Computer Hardware Revision Quiz

Quiz
•
8th Grade
40 questions
Python Assessment 1

Quiz
•
7th - 9th Grade
35 questions
Python procedures and functions

Quiz
•
8th - 10th Grade
40 questions
FBLA Exploring Computer Science

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

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade