Week-3 (Decision Structures & Boolean Logic)

Week-3 (Decision Structures & Boolean Logic)

University

10 Qs

quiz-placeholder

Similar activities

Software Testing

Software Testing

University

10 Qs

Hệ Điều Hành Của Máy Tính

Hệ Điều Hành Của Máy Tính

10th Grade - University

10 Qs

SegInt

SegInt

University

10 Qs

quiz pertemuan 2 asik ddp

quiz pertemuan 2 asik ddp

University

15 Qs

Intro 2 Docker

Intro 2 Docker

12th Grade - University

10 Qs

Quiz #2 ETEC 486 | Spr. 16

Quiz #2 ETEC 486 | Spr. 16

KG - University

10 Qs

Parcial - Módulo IV

Parcial - Módulo IV

1st Grade - University

15 Qs

Week-3 (Decision Structures & Boolean Logic)

Week-3 (Decision Structures & Boolean Logic)

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Sudath Heiyanthuduwage

Used 37+ 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(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

Access all questions and much more by creating a free account

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

Already have an account?