AP CSP Conditionals

AP CSP Conditionals

Assessment

Assessment

Created by

Alicia Wade

Computers

9th - 12th Grade

149 plays

Medium

Student preview

quiz-placeholder

13 questions

Show all answers

1.

MULTIPLE CHOICE

30 sec • 1 pt

Assume that the two variables age and day have been initialized with the values shown.

var age = 16;

var day = "Monday";


Determine if the following statement evaluates to true or false.

(age > 10) && (age < 20)

2.

MULTIPLE CHOICE

30 sec • 1 pt

Assume that the two variables age and day have been initialized as shown below.


var age = 16;

var day = "Monday";


Determine if the following statement evaluates to true or false.


!(age > 10)

3.

MULTIPLE CHOICE

30 sec • 1 pt

Assume that the two variables age and day have been initialized as shown below.


var age = 16;

var day = "Monday";


Determine if the following statement evaluates to true or false.


(day == "Tuesday") || (age < 12)

4.

MULTIPLE CHOICE

30 sec • 1 pt

Assume that the two variables age and day have been initialized as shown below.


var age = 16;

var day = "Monday";


Determine if the following statement evaluates to true or false.


!((age == 16) || (day == "Monday"))

5.

MULTIPLE CHOICE

30 sec • 1 pt

Assume that the two variables age and day have been initialized as shown below.


var age = 16;

var day = "Monday";


Determine if the following statement evaluates to true or false.


!((age == 16) && !(day == "Monday"))

6.

MULTIPLE CHOICE

30 sec • 1 pt

Assume that the two variables age and day have been initialized as shown below.


var age = 16;

var day = "Monday";


Determine if the following statement evaluates to true or false.


((age == 16) && (day == "Monday")) && (day == "Tuesday")

7.

MULTIPLE CHOICE

30 sec • 1 pt

Assume that the two variables age and day have been initialized as shown below.


var age = 16;

var day = "Monday";


Determine if the following statement evaluates to true or false.


((age == 16) && (day == "Monday")) || (day == "Tuesday")

8.

MULTIPLE CHOICE

30 sec • 1 pt

Assume that the two variables age and day have been initialized as shown below.


var age = 16;

var day = "Monday";


Determine if the following statement evaluates to true or false.


((age > 10) && ((age + 5) > 20))

9.

MULTIPLE CHOICE

30 sec • 1 pt

Media Image

Given the following set of code, what would be the output?

10.

MULTIPLE CHOICE

30 sec • 1 pt

How many values can a variable hold?

Explore all questions with a free account

or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Find a similar activity

Create activity tailored to your needs using

Quizizz AI