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)
AP CSP Conditionals
Quiz
•
Computers
•
9th - 12th Grade
•
Medium
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
10 questions
CP Pseudocode Review #3
Quiz
•
11th Grade
11 questions
JS: Conditionals!
Quiz
•
6th Grade - University
10 questions
AP CSP Boolean Logic 3
Quiz
•
9th - 12th Grade
7 questions
Java Basics #2
Quiz
•
10th - 12th Grade
10 questions
AP CSP Boolean Logic 2
Quiz
•
9th - 12th Grade
11 questions
Expressions coding and or not coding
Quiz
•
9th - 12th Grade
12 questions
JavaScript
Quiz
•
9th Grade
10 questions
Comp Sci Unit 2 #8
Quiz
•
11th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University