Python Boolean

Python Boolean

11th - 12th Grade

11 Qs

quiz-placeholder

Similar activities

Data visualization

Data visualization

10th Grade - University

12 Qs

L3 U14 Python Basics 2

L3 U14 Python Basics 2

11th - 12th Grade

13 Qs

Python Basics

Python Basics

KG - University

10 Qs

String Quiz

String Quiz

9th - 12th Grade

15 Qs

Python-Basic

Python-Basic

3rd Grade - University

15 Qs

Python Quiz 1

Python Quiz 1

6th Grade - University

12 Qs

Python Reflect

Python Reflect

8th Grade - University

13 Qs

Python Basics - Lesson 1

Python Basics - Lesson 1

KG - University

10 Qs

Python Boolean

Python Boolean

Assessment

Quiz

Computers

11th - 12th Grade

Medium

Used 402+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

A variable that can only have two values, True or False.
Boolean
If
elif
else

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which is the correct syntax?
has_dog = true
has_dog = True
has_dog = Treu
HAS_DOG = tRue

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

This operator means that one value is the same as the other value
==
!=
>
<

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

The result of this program:
Friday = False
if Friday:

    print "Jeans day!"
else:
    print "Dress code"
Jeans Day
Jeans day
Dress code
Dress Code

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What will be the output?
name = 'Dave'
greeting = "Good morning" + name
print (greeting)
Good morning 'Dave'
Good morning Dave
Good morning name
Good morning + Dave

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

A syntax error means you have an error with your Python grammar or a symbol/operator is incorrectly used.  
TRUE
FALSE

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which symbol do we use if we want to add a comment to our code?
@
#
*
&

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?