AP CSP Conditionals

Assessment
•
Alicia Wade
•
Computers
•
9th - 12th Grade
•
149 plays
•
Medium
Student preview

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
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
Find a similar activity
Create activity tailored to your needs using