In this python code, what message is displayed if the student scores 34?
Control Structures - Selection in Python

Quiz
•
Computers
•
8th Grade
•
Hard
Meenal Tripathi
Used 11+ times
FREE Resource
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You passed. Well done!
You failed. Try again!
Invalid score.
Syntax error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the attached python code, what is the purpose of converting num1 and num2 to integers?
To perform string operations
To compare them as numbers
To display them as text
To store them in a list
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be printed if num1 is 10 and num2 is 20 in the attached code?
First number is greater than the second
Second number is greater than the first
Numbers are equal
Invalid input
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In this example, which part of the if-statement will be executed if the input speed is below 40 mph?
if speed >= 70:
elif speed >=40:
else:
input("Enter driver's speed")
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of control structure is used in selection?
for loop
while loop
if-else statement
switch-case statement
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In this example, what will be the output if num1 is 25 and num2 is 25?
1st bigger than 2nd
2nd bigger than 1st
Numbers are equal
No output
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the elif statement in an if-elif-else statement?
To handle multiple conditions
To repeat a block of code
To define a function
To initialize variables
Create a free account and access millions of resources
Similar Resources on Quizizz
11 questions
Computer Programming Basics

Quiz
•
8th Grade
15 questions
PSP Week 4

Quiz
•
University
10 questions
Python Loops

Quiz
•
9th - 12th Grade
13 questions
CTE Information Technology Quiz

Quiz
•
7th - 9th Grade
10 questions
CS1310 Unit 1 Quizziz

Quiz
•
12th Grade
15 questions
Python elif and Nested if

Quiz
•
12th Grade
15 questions
Python Basics

Quiz
•
University
11 questions
Python Boolean

Quiz
•
11th - 12th 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 Computers
14 questions
Misplaced and Dangling Modifiers

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

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

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

Quiz
•
7th - 12th Grade
40 questions
Word Study Assessment: Roots, Prefixes, Suffixes, and Vocabulary

Quiz
•
8th Grade
17 questions
guess the logo

Quiz
•
8th Grade
16 questions
Function or Non-Function?

Quiz
•
8th - 10th Grade
15 questions
Sentence Fragments and Run-ons

Quiz
•
8th Grade