Python Logical Operators

Python Logical Operators

5th Grade

9 Qs

quiz-placeholder

Similar activities

python_quiz

python_quiz

5th Grade

11 Qs

Słupskie Bystrzaki 2

Słupskie Bystrzaki 2

2nd - 7th Grade

10 Qs

G5 Review 2

G5 Review 2

5th Grade

10 Qs

More about Computer software

More about Computer software

3rd - 7th Grade

11 Qs

Scratch Class 5

Scratch Class 5

5th Grade

10 Qs

Full forms

Full forms

5th Grade

10 Qs

Computer Memory

Computer Memory

5th Grade

7 Qs

CLASS - V Ch-1: Know Your Computer

CLASS - V Ch-1: Know Your Computer

1st - 7th Grade

10 Qs

Python Logical Operators

Python Logical Operators

Assessment

Quiz

Computers

5th Grade

Medium

Created by

Nidhi Singh

Used 23+ times

FREE Resource

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 pseudo-code?

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

8.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

<, >, >=, <=, ==, != are all examples of:

Comparison operators

Arithmetic operators

Assignment operators

Logical

operators

9.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What operators can you identify in the following pseudo-code?

if (timer > 0):      

print "keep playing"      

timer = timer - 1

Comparison operators

Arithmetic operators

Assignment operators

All three of them