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
AP CSP Boolean Logic 5

Quiz
•
9th - 12th Grade
7 questions
Java Basics #2

Quiz
•
10th - 12th Grade
10 questions
TLE Q3 M5

Quiz
•
9th - 12th Grade
12 questions
Python

Quiz
•
7th - 9th Grade
10 questions
Riddles

Quiz
•
8th - 9th Grade
10 questions
CP Pseudocode Review #3

Quiz
•
11th Grade
10 questions
Quiz 15 - Array Basics

Quiz
•
11th Grade
10 questions
Warm Up - CAI711

Quiz
•
11th - 12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
19 questions
Mental Health Vocabulary Pre-test

Quiz
•
9th Grade