Python Boolean

Python Boolean

11th - 12th Grade

11 Qs

quiz-placeholder

Similar activities

python

python

12th Grade

15 Qs

Python Quiz

Python Quiz

12th Grade

15 Qs

Python retrieval

Python retrieval

11th Grade

16 Qs

Python Programming Basics

Python Programming Basics

7th - 11th Grade

12 Qs

Test - Python básico II

Test - Python básico II

9th - 12th Grade

16 Qs

Programming Quiz 1

Programming Quiz 1

11th Grade

11 Qs

Python CodeHS Quiz

Python CodeHS Quiz

10th - 12th Grade

10 Qs

Python Reflect

Python Reflect

8th Grade - University

13 Qs

Python Boolean

Python Boolean

Assessment

Quiz

Computers

11th - 12th Grade

Medium

Used 398+ 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?