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
10 questions
Year 5 ICT Mid Term Assessment
Quiz
•
5th Grade
13 questions
Thunkable funciones avanzadas
Quiz
•
1st - 5th Grade
10 questions
Von Neumann
Quiz
•
1st - 9th Grade
12 questions
Scratch Introduction Quiz
Quiz
•
1st - 8th Grade
10 questions
Scracth
Quiz
•
5th Grade
10 questions
Digital Citizenship Quiz - Sports House Competition
Quiz
•
3rd Grade - University
10 questions
Our Online Tracks
Quiz
•
2nd - 5th Grade
10 questions
Year 5 ICT holiday fun
Quiz
•
5th - 6th 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
