Boolean and Operators

Boolean and Operators

4th - 12th Grade

5 Qs

quiz-placeholder

Similar activities

networks

networks

11th Grade

10 Qs

CIS 105 - 2.8

CIS 105 - 2.8

9th - 12th Grade

8 Qs

Output Devices

Output Devices

7th - 9th Grade

7 Qs

ICT Grade 8

ICT Grade 8

8th Grade

10 Qs

OCR GCSE CS - 2.1 ERL sorts and searches

OCR GCSE CS - 2.1 ERL sorts and searches

10th - 11th Grade

9 Qs

MEDIA AND INFORMATION LITERACY

MEDIA AND INFORMATION LITERACY

12th Grade

10 Qs

multimedia ks2

multimedia ks2

5th Grade

10 Qs

To Change or Not to Change?

To Change or Not to Change?

12th Grade

10 Qs

Boolean and Operators

Boolean and Operators

Assessment

Quiz

Computers

4th - 12th Grade

Hard

Created by

Whizara Teacher

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which one from the following can only have two values (True or False)?

if

else

elif

boolean

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

This operator checks if one value is the same as the other value

==

<

<=

>=

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

This operator checks if one value is not equal to the other value

==

!=

>=

<=

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is the output of the following code?

Friday = False

if Friday:

    print "Jeans day!"

else:

    print "Dress code"

Jeans day!

error

Dress code

None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is the output of the following code?

team = 'Cowboys'

if team = 'Cowboys':

    print "Dallas is #1"

Error

Cowboys

Dallas is #1

None of the above