
Python Programming Quiz
Authored by Kai CHOW
Computers
6th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
BB> What is the output of the following Python program?
for i in range(5):
print(i+1, end ='')
01234
00000
12345
5
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
AA> What is the output of the following Python program? A = [18, 20, 16, 40] print(A[1])
A. 18
B. 20
C. 16
D. 40
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
CC>The following Python program is written to search for a number target in the array num. num = [4, 7, 9, 2, 5] target = int(input()) found = False
____
if found: print('The target is in the list') else: print('The target is not in the list') Which of the following is the most suitable option to fill in the blank?
A. for i in range(5): if num[i] == target: found = True
B. for i in range(5): if num[i] == target: found = False
C. while not found: if num[i] == target: found = True
D. if num[i] == target: found = True
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
DD> Which of the following is the output of the Python program below?
num = [ 1, 2, 3, 4, 5 ]
for i in range(1, 3): print(num[ i ], end = “ ”)
A. 1 2
B. 1 2 3
C. 2 3
D. 2 3 4
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
EE>The following Python program is used to print all the names in the list. Which of the following lines can be used to fill in the blank?
name = [“Peter”, “Donald”, “Chris”, “Ben”]
__________
print(name[ i ])
A. for i in range(0, 3):
B. for i in range(0, 4):
C. while i < 3:
D. while i < 4:
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
FF> Study the following Python program and answer the question below. List = [1]*6 List[1] = 8 List[2] = 16 print(List[2] + List[4] + List[1])
A. 25
B. 24
C. 26
D. 18
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
10 questions
EXAMEN I NFORMÁTICA 1° Y 2° DE SEC
Quiz
•
6th - 8th Grade
10 questions
Типы значений и работа с ними
Quiz
•
5th - 6th Grade
10 questions
Avaliação Pensamento Computacional - Prático
Quiz
•
1st Grade - Professio...
10 questions
Quiz 1 (Page 1)
Quiz
•
6th Grade
11 questions
5.SINIFLAR - 12.HAFTA - GÖRSEL İŞLEME PROGRAMLARI
Quiz
•
5th - 6th Grade
10 questions
Pesquisa e Direitos de Autor
Quiz
•
6th Grade
10 questions
XI_осн_кон
Quiz
•
6th - 8th Grade
10 questions
Bezpieczny Internet
Quiz
•
6th - 7th 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