wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Decision structure also known as Boolean structure

a)

True

b)

False

2.

Single alternative provides only one alternative path

a)

True

b)

False

3.

The first line of the "Decision structure" we refer "if clan"

a)

True

b)

False

4.

In decision structure colon appears behind the condition

a)

True

b)

False

5.

Expressions that are tested by if statement are called Logical expressions.

a)

True

b)

False

6.

Boolean variables are commonly used as flags

a)

True

b)

False

7.

== Determines whether two operands test more,. than one relationship.

a)

True

b)

False

8.

=! Determines whether two operands are equal to one another

a)

True

b)

False

9.

To test less than one condition, a decision structure can be nested inside another decision structure.

a)

True

b)

False

10.

Flag is a variable that signals when some condition exist in the program.

a)

True

b)

False

11.

A___ is a Logical design that controls the order in which a set of statements excute.

a)

Decision structure

b)

Control structure

c)

Execution Structure

12.

A___ structure is a set of statements that excute in the order in which they appear.

a)

Sequence

b)

Nested

c)

Logical

13.

Which is not part of control structure?

a)

Sequence structure

b)

Decision structure

c)

Iteration structure

d)

Single alternative structure

14.

A___ is simply a set of statements that belong together as a group.

a)

Boolean

b)

Variable

c)

Turtle

d)

Block

15.

A___ determines whether specific relationship exists between two values.

a)

Logical operator

b)

Arithmetic operator

c)

Relational Operator

16.

Which structure has two possible paths of excution?

a)

Single alternative structure

b)

Dual alternative structure

c)

Both A & B

d)

None

17.

Which operators allow you to connect multiple Boolean expressions to create a compound expression.

a)

Logical "and" operator

b)

Logical "Or" operator

c)

Both A & B

d)

None

18.

Which one is not part types of operators

a)

Artithmetic oprations

b)

Python Operations

c)

Logical operations

d)

Relational operations

19.

A Boolean variables can reference one of two values

a)

True or False

b)

And or Not

c)

If and else

d)

None

20.

A compound Boolean expression created with the ___ operator is true only if both of its subexpression are true

a)

And

b)

Or

c)

Not

d)

None