Python Boolean

Python Boolean

11th - 12th Grade

11 Qs

quiz-placeholder

Similar activities

CO - 2_ Quiz 1_Python Conditionals

CO - 2_ Quiz 1_Python Conditionals

10th Grade - University

15 Qs

Python variables and Data types

Python variables and Data types

10th - 12th Grade

10 Qs

XI_CS_24JUN2021

XI_CS_24JUN2021

11th Grade

15 Qs

PYTHON - SKILL#1.1 - JR

PYTHON - SKILL#1.1 - JR

11th Grade

13 Qs

Python

Python

12th Grade

6 Qs

Data Types Quiz

Data Types Quiz

12th Grade

10 Qs

Python Operators & Expressions

Python Operators & Expressions

8th - 11th Grade

13 Qs

Python

Python

12th Grade

15 Qs

Python Boolean

Python Boolean

Assessment

Quiz

Computers

11th - 12th Grade

Medium

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