
Python Programming Quiz

Quiz
•
Information Technology (IT)
•
7th Grade
•
Medium
Fadi Fadi
Used 2+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function generates a whole number between 5 and 15, inclusive?
random.random(5, 15)
random.randint(5, 15)
random.choice(5, 15)
random.number(5, 15)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will this code print? x = 9 if x = 15: print("A") elif x >= 10: print("B") else: print("C")
A
B
C
Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this code print? if 10 != 5: print("Different") else: print("Same")
Same
Error
10
Different
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of this code? num = 3 if num % 2 == 0: print("Even") else: print("Odd")
Even
Odd
3
Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these operators means “equal to”?
=
==
:=
equals
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword follows an if condition if the first condition is false and a second needs to be checked?
elif
else
check
elseif
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this code output? age = 17 if age >= 18: print("Adult") else: print("Minor")
Adult
Error
Minor
17
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Python Data Structures

Quiz
•
6th - 8th Grade
20 questions
Câu hỏi về PowerPoint

Quiz
•
4th Grade - University
20 questions
ICT G 7 Chapter 2.1 Input and Output Devices

Quiz
•
7th Grade - University
20 questions
CS4: C1 - Know your computer

Quiz
•
7th Grade
20 questions
Digital Citizenship Test

Quiz
•
7th Grade - University
20 questions
Kiểm tra thường xuyên số 2 - lớp 7

Quiz
•
7th Grade
15 questions
Пайтон 7 класс

Quiz
•
7th Grade
10 questions
postest

Quiz
•
7th 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
15 questions
Subtracting Integers

Quiz
•
7th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Multiplying and Dividing Integers

Quiz
•
7th Grade
30 questions
Math Fluency: Multiply and Divide

Quiz
•
7th Grade
20 questions
Perfect Squares and Square Roots

Quiz
•
7th Grade
13 questions
Parts of Speech

Quiz
•
7th Grade