AP CSA Unit 3 Boolean Expressions

Quiz
•
Computers
•
10th - 12th Grade
•
Medium
Lisa Shifflett
Used 192+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the code assuming that a b c and d are ints, which of the following is an example of short circuit evaluation?
if a > b is true it doesn't evaluate c == d
if c == d is false it evaluates a > b
if a > b is false it doesn't evaluate c == d
if c == d is true it doesn't evaluate a > b
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Just before exiting this program, what are the values of the instance variable value of MultiplyObjects a, b and c?
5, 10, 20
40, 40, 40
40, 10, 40
10, 10, 20
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The boolean expression (A || B) && A is true
whenever A is true
whenever B is true
whenever either A is true or B is true
whenever both A is true and B is true
In all cases
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The boolean expression (A && B) && B is true
whenever A is true
whenever B is true
whenever either a is true or B is true
whenever both A is true and B is true
In all cases
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For what values of n with this code segment generate output?
for all values of n
for all even values of n
for all values of n that are multiples of 3
for all values of n that are multiples of 6
for all values of n that are either a multiple of 2 or a multiple of 3.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed as a result of executing the program?
10 20
10 20
10 20
20 10
10 10
20 20
20 20
20 20
There is no output displayed.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For what values of n will the code segment generate output?
For all values of n
For all values of n in the range [20 .. 100]
For all values of n in the range [51 .. 99]
For all values of n NOT in the range of [50 .. 100]
For al values of n NOT in the range of [51 .. 99]
Create a free account and access millions of resources
Similar Resources on Wayground
27 questions
AP CS A CH 1 Review

Quiz
•
10th - 12th Grade
25 questions
Java Programming Quizz-GX

Quiz
•
9th - 12th Grade
25 questions
Grade 10 review

Quiz
•
10th Grade
26 questions
P5.js Review - Part 2

Quiz
•
10th Grade
25 questions
Data Types- Python

Quiz
•
7th - 11th Grade
25 questions
2.3 Robust Programs

Quiz
•
9th - 11th Grade
30 questions
Python Basics

Quiz
•
8th - 10th Grade
25 questions
PYTHON QUIZ 1

Quiz
•
11th - 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
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