
G9, unit 2

Quiz
•
Computers
•
10th Grade
•
Medium
Ahmad Abdallah
Used 1+ times
FREE Resource
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'elif' statement stand for in Python?
Else if true
Else if false
Else if not
Else if
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which logical operator is used to connect two or more conditional statements?
NOT
AND
OR
XOR
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the program to find the largest among three numbers, which condition checks if num1 is the largest?
if (num1 == num2) and (num1 == num3)
if (num1 >= num2) and (num1 >= num3)
if (num1 > num2) and (num1 > num3)
if (num1 <= num2) and (num1 <= num3)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the else statement in an if-elif-else structure?
To execute code if all previous conditions are false
To execute code if the first condition is true
To execute code if the last condition is true
To execute code if the second condition is true
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a calculator program, what will happen if the user inserts an invalid input?
The program will ask for input again
The program will crash
The program will display 'Invalid Input'
The program will return 0
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the program if the user inputs 30 and 5 with the operator '/'?
6
5.0
5
6.0
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many conditions can be checked using if-elif-else statements?
Multiple
Two
Only one
None
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Kiểm Tra 15p Câu Lệnh IF (Python)

Quiz
•
10th Grade - University
17 questions
Python 1

Quiz
•
1st Grade - University
12 questions
Python Basic

Quiz
•
10th Grade
10 questions
Visual Basic I

Quiz
•
10th - 11th Grade
10 questions
S If

Quiz
•
9th - 12th Grade
10 questions
Ôn tập tuần 1 Python

Quiz
•
9th - 12th Grade
17 questions
Python

Quiz
•
6th - 10th Grade
15 questions
Eval. 1BIM - 1ro B

Quiz
•
7th Grade - University
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
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade