AP CSP Conditionals

AP CSP Conditionals

9th - 12th Grade

8 Qs

quiz-placeholder

Similar activities

Boolean Logic

Boolean Logic

9th - 12th Grade

10 Qs

Expressions coding and or not coding

Expressions coding and or not coding

9th - 12th Grade

11 Qs

JavaScript

JavaScript

9th Grade

12 Qs

BE METER REVIEW #7

BE METER REVIEW #7

12th Grade

12 Qs

Variables Warm up Code.org CSP Unit 4

Variables Warm up Code.org CSP Unit 4

9th Grade

9 Qs

AP CSP Boolean Logic 5

AP CSP Boolean Logic 5

9th - 12th Grade

11 Qs

AP CSP Boolean Logic 3

AP CSP Boolean Logic 3

9th - 12th Grade

10 Qs

AP CSP Boolean Logic 2

AP CSP Boolean Logic 2

9th - 12th Grade

10 Qs

AP CSP Conditionals

AP CSP Conditionals

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Eileen Fallon

Used 54+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

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)

true

false

2.

MULTIPLE CHOICE QUESTION

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)

true

false

3.

MULTIPLE CHOICE QUESTION

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)

true

false

4.

MULTIPLE CHOICE QUESTION

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"))

true

false

5.

MULTIPLE CHOICE QUESTION

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"))

true

false

6.

MULTIPLE CHOICE QUESTION

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")

true

false

7.

MULTIPLE CHOICE QUESTION

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")

true

false

8.

MULTIPLE CHOICE QUESTION

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))

true

false