Which function generates a whole number between 5 and 15, inclusive?

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
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 Quizizz
10 questions
Вікторина "БАЗОВІ ЗНАННЯ"

Quiz
•
7th Grade
10 questions
Викторина по языку Python

Quiz
•
6th - 8th Grade
15 questions
5-sinf. Kompyuter va Internet Asoslari

Quiz
•
5th Grade - University
10 questions
Ch2變數與運算式-綜合演練選擇題

Quiz
•
6th - 8th Grade
20 questions
Thử thách 7 - đường đua lập trình

Quiz
•
7th Grade
20 questions
quiz1B1

Quiz
•
7th Grade - University
17 questions
Quiz về kiểu dữ liệu Str

Quiz
•
6th - 8th Grade
20 questions
Python təkrar

Quiz
•
7th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
11 questions
Decimal/fraction conversions quick check

Quiz
•
5th - 7th Grade
10 questions
Identifying equations

Quiz
•
KG - University
44 questions
El fin del año- 7th

Quiz
•
7th - 12th Grade
20 questions
Math Review

Quiz
•
7th Grade
14 questions
Subtracting Integers

Lesson
•
6th - 8th Grade
15 questions
Exponent Properties

Quiz
•
7th - 9th Grade