Week-3 (Decision Structures & Boolean Logic)

Week-3 (Decision Structures & Boolean Logic)

University

10 Qs

quiz-placeholder

Similar activities

C++ Basics

C++ Basics

University

12 Qs

Python introduction

Python introduction

University

15 Qs

Intro to Scratch 2

Intro to Scratch 2

KG - University

12 Qs

Struktur Data

Struktur Data

University

10 Qs

Boolean Exression

Boolean Exression

University

10 Qs

Java Programming

Java Programming

University

15 Qs

Condicionales Python - TC1028

Condicionales Python - TC1028

University

10 Qs

Boolean

Boolean

University

15 Qs

Week-3 (Decision Structures & Boolean Logic)

Week-3 (Decision Structures & Boolean Logic)

Assessment

Quiz

Computers

University

Hard

Created by

Sudath Heiyanthuduwage

Used 37+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A(n) _____ structure is a logical design that controls the order in which a set of statements execute.

Function

Control

Sequence

Iteration

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Multiple Boolean expressions can be combined by using a logical operator to create _____ expressions.

Sequential

Logical

Compound

mathematical

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When using the _____ operator, one or both subexpressions must be true for the compound expression to be true.

or

and

not

may be

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which logical operators perform short-circuit evaluation?

or, not

not, and

or, and

and, or, not

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct if clause to determine whether y is in the range 10 through 50?

if 10 < y or y > 50

if 10 > y and y < 50

if y > 10 and y < 50

if y > 10 or y < 50

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A Boolean variable can reference one of two values: _____.

yes or no

true or false

T or F

Y or N

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following Boolean expression, if x equals 5, y equals 3, and z equals 8? x < y or z > x

true

false

8

5

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?