Python Boolean

Python Boolean

11th - 12th Grade

11 Qs

quiz-placeholder

Similar activities

Trắc nghiệm bài 12 tin học 11

Trắc nghiệm bài 12 tin học 11

11th Grade

10 Qs

Types of Mass Media

Types of Mass Media

10th Grade - Professional Development

11 Qs

Programming Quiz 1

Programming Quiz 1

11th Grade

11 Qs

Quiz 8 (01.09.2021)

Quiz 8 (01.09.2021)

1st - 12th Grade

10 Qs

BTEC DIT C3 LAA - Using cloud and traditional systems

BTEC DIT C3 LAA - Using cloud and traditional systems

10th - 11th Grade

10 Qs

Cyber Security Quiz

Cyber Security Quiz

12th Grade

10 Qs

1.2.4. Types of Programming Language

1.2.4. Types of Programming Language

12th Grade

12 Qs

Test on Python Function

Test on Python Function

11th - 12th Grade

12 Qs

Python Boolean

Python Boolean

Assessment

Quiz

Computers

11th - 12th Grade

Medium

Used 406+ 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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?

Discover more resources for Computers