AP CSA Unit 3 Boolean Expressions

AP CSA Unit 3 Boolean Expressions

10th - 12th Grade

30 Qs

quiz-placeholder

Similar activities

Java Boolean

Java Boolean

10th - 12th Grade

30 Qs

Boolean Logic

Boolean Logic

10th - 12th Grade

30 Qs

Strings In java

Strings In java

9th - 10th Grade

35 Qs

Python Functions Review Quiz

Python Functions Review Quiz

9th - 12th Grade

28 Qs

Algorithms - python (GCSE)

Algorithms - python (GCSE)

10th - 12th Grade

25 Qs

JAVASCRIPT

JAVASCRIPT

12th Grade

25 Qs

Beginner Python KS3 Revision

Beginner Python KS3 Revision

8th - 10th Grade

26 Qs

AP CSA Unit 3 Boolean Expressions

AP CSA Unit 3 Boolean Expressions

Assessment

Quiz

Computers

10th - 12th Grade

Medium

Created by

Lisa Shifflett

Used 191+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Consider the code assuming that a b c and d are ints, which of the following is an example of short circuit evaluation?

if a > b is true it doesn't evaluate c == d

if c == d is false it evaluates a > b

if a > b is false it doesn't evaluate c == d

if c == d is true it doesn't evaluate a > b

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Just before exiting this program, what are the values of the instance variable value of MultiplyObjects a, b and c?

5, 10, 20

40, 40, 40

40, 10, 40

10, 10, 20

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The boolean expression (A || B) && A is true

whenever A is true

whenever B is true

whenever either A is true or B is true

whenever both A is true and B is true

In all cases

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The boolean expression (A && B) && B is true

whenever A is true

whenever B is true

whenever either a is true or B is true

whenever both A is true and B is true

In all cases

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

For what values of n with this code segment generate output?

for all values of n

for all even values of n

for all values of n that are multiples of 3

for all values of n that are multiples of 6

for all values of n that are either a multiple of 2 or a multiple of 3.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is printed as a result of executing the program?

10 20

10 20

10 20

20 10

10 10

20 20

20 20

20 20

There is no output displayed.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

For what values of n will the code segment generate output?

For all values of n

For all values of n in the range [20 .. 100]

For all values of n in the range [51 .. 99]

For all values of n NOT in the range of [50 .. 100]

For al values of n NOT in the range of [51 .. 99]

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?