AP CSP Conditionals

AP CSP Conditionals

9th - 12th Grade

8 Qs

quiz-placeholder

Similar activities

Boolean APCSP

Boolean APCSP

9th - 12th Grade

10 Qs

Logic APCSP

Logic APCSP

9th - 12th Grade

10 Qs

Java Script

Java Script

10th - 12th Grade

10 Qs

Arrays

Arrays

KG - University

10 Qs

Exit Ticket 1/17

Exit Ticket 1/17

9th - 12th Grade

12 Qs

9 класс Информатика Одномерный массив данных

9 класс Информатика Одномерный массив данных

9th - 10th Grade

10 Qs

CSP - U5L10 Color review

CSP - U5L10 Color review

10th - 12th Grade

9 Qs

Revision - Optional Lesson

Revision - Optional Lesson

12th Grade

7 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