Python Logical Operators
Quiz
•
Computers
•
5th Grade
•
Practice Problem
•
Medium
Nidhi Singh
Used 28+ times
FREE Resource
Enhance your content in a minute
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is NOT a logical operator in python?
and
not
!=
or
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
x = 5
print(x > 0 and x < 10)
Choose the output it'll display.
True
False
No output
don't know
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
n = 25
print(n % 2 == 0 or n % 3 == 0)
Choose the output it'll display.
True
False
No output
don't know
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What operators can you identify in the following code?
if (timer <= 0) or (lives == 0):
print ("Game Over")
None of these
Logical operators and Arithmetic operators
Comparison operators and Arithmetic operators
Comparison operators and Logical operators
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
AND, OR, NOT are all examples of:
Comparison operators
Arithmetic operators
Assignment operators
Logical
operators
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What operator can you identify in the following statement?
gravity = 9.81
Comparison operators
Arithmetic operators
Assignment operators
Logical
operators
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What operator can you identify in the following pseudo-code?
if x < 8:
print ("Your password is not valid!")
Comparison operators
Arithmetic operators
Assignment operators
Logical
operators
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
7 questions
Computer Memory
Quiz
•
5th Grade
10 questions
Pictoblox 7
Quiz
•
1st - 9th Grade
10 questions
Rainbow Six Siege
Quiz
•
5th Grade - University
10 questions
SCRATCH LẦN 9999
Quiz
•
5th Grade
10 questions
ECA quiz exam
Quiz
•
1st - 5th Grade
10 questions
data verification and validations
Quiz
•
5th - 8th Grade
10 questions
Full forms
Quiz
•
5th Grade
10 questions
Fundamental of computer Quiz
Quiz
•
5th - 10th 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
