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
Similar Resources on Wayground
11 questions
Javascript Lists Lecture Knowledge Check

Quiz
•
9th - 12th Grade
11 questions
JavaScript Control Structures Basic

Quiz
•
12th Grade
10 questions
Evaluasi Javascript 3

Quiz
•
10th Grade
10 questions
Мова гіпертекстової розмітки

Quiz
•
10th Grade
10 questions
Символьные величины 9 класс

Quiz
•
9th Grade
7 questions
FCS Unit 3 Lessons 1 through 7 Review

Quiz
•
10th Grade
10 questions
Introducción a JavaScript I

Quiz
•
9th Grade
10 questions
GDScript Quiz - Lesson 2 - Variables & Functions

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade