AP CSP 3.5 Boolean Expressions Pt. 2

AP CSP 3.5 Boolean Expressions Pt. 2

9th - 12th Grade

5 Qs

quiz-placeholder

Similar activities

AP Java 9-15-2023 (just functions1)

AP Java 9-15-2023 (just functions1)

9th - 12th Grade

10 Qs

MIT App Inventor Basics

MIT App Inventor Basics

9th - 12th Grade

10 Qs

Single Array

Single Array

11th Grade

10 Qs

Nhắc lại kiến thức

Nhắc lại kiến thức

1st - 12th Grade

5 Qs

Java

Java

11th Grade

10 Qs

פירוק והרכבת מספר

פירוק והרכבת מספר

10th Grade

10 Qs

Bài tập Bài 2

Bài tập Bài 2

11th Grade

5 Qs

DFD- DIAGRAMAS DE FLUJO

DFD- DIAGRAMAS DE FLUJO

10th Grade

10 Qs

AP CSP 3.5 Boolean Expressions Pt. 2

AP CSP 3.5 Boolean Expressions Pt. 2

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Herman Galioulline

Used 11+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

2 mins • 1 pt

Directions: For the question or incomplete statement below, two of the suggested answers are correct. For this question, you must select both correct choices to earn credit. No partial credit will be earned if only one correct choice is selected. Select the two that are best in each case.


Which of the following Boolean expressions are equivalent to the expression


num ≥ 15


Select two answers.

(num > 15) AND (num = 15)

(num > 15) OR (num = 15)

NOT (num < 15)

NOT (num < 16)

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

In a certain country, a person must be at least 16 years old to drive a car and must be at least 18 years old to vote. The variable age represents the age of a person as an integer.


Which of the following expressions evaluates to true if the person is old enough to drive but not old enough to vote, and evaluates to false otherwise?


I. (age ≥ 16) AND (age ≤ 18)

II. (age ≥ 16) AND (NOT(age ≥ 18))

III. (age < 18) AND (NOT(age < 16))

II only

I and II only

I and III only

II and III only

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

(onFloor1 AND callTo2) AND (onFloor2 AND callTo1)

(onFloor1 AND callTo2) OR (onFloor2 AND callTo1)

(onFloor1 OR callTo2) AND (onFloor2 OR callTo1)

(onFloor1 OR callTo2) OR (onFloor2 OR callTo1)

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

The output will be true no matter what the value of input B is.

The output will be false no matter what the value of input B is.

The output will be true if input B is true; otherwise it will be false.

The output will be false if input B is true; otherwise it will be true.

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Input A must be true.

Input A must be false.

Input A can be either true or false.

There is no possible value of input A that will cause the circuit to have the output true.