Python Boolean and If

Python Boolean and If

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

8525 AQA GCSE  3.1.1 Pseudo-code

8525 AQA GCSE 3.1.1 Pseudo-code

10th - 11th Grade

14 Qs

Networking

Networking

11th Grade

12 Qs

Programs and Variables in Code and Play

Programs and Variables in Code and Play

5th - 9th Grade

7 Qs

B Words GCSE Computer Science

B Words GCSE Computer Science

1st - 10th Grade

15 Qs

CALL: TOEFL Exercise skill 1-3

CALL: TOEFL Exercise skill 1-3

12th Grade

10 Qs

OOP 1 Undiksha

OOP 1 Undiksha

12th Grade - University

13 Qs

BIM1014 Quiz 2

BIM1014 Quiz 2

KG - University

15 Qs

Python Boolean and If

Python Boolean and If

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Bladen Crockett

Used 188+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

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

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is syntax?
It's a string
It's an exercise
It's a structure
It's a method

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which passes a Boolean to a String?
print "has_dog"
str(has_dog)
print "has_dog" str
(input)(has_dog)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The choices of an if statement are called:
twigs
branches
leaves
trees

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

An if statement must evaluate to:
Right or Wrong
True
True or False
False

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

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

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