AP CSA Unit 3 Boolean Expressions
Flashcard
•
Computers
•
10th - 12th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

29 questions
Show all answers
1.
FLASHCARD QUESTION
Front
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
Back
if a > b is false it doesn't evaluate c == d
2.
FLASHCARD QUESTION
Front
Just before exiting this program, what are the values of the instance variable value of MultiplyObjects a, b and c? Options: 5, 10, 20; 40, 40, 40; 40, 10, 40; 10, 10, 20
Back
40, 40, 40
3.
FLASHCARD QUESTION
Front
The boolean expression (A || B) && A is true whenever?
Back
A is true
4.
FLASHCARD QUESTION
Front
The boolean expression (A && B) && B is true whenever...
Back
both A is true and B is true
5.
FLASHCARD QUESTION
Front
For what values of n with this code segment generate output? Options: 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.
Back
for all values of n that are multiples of 6
6.
FLASHCARD QUESTION
Front
What is printed as a result of executing the program? Options: 10 20, 10 20, 10 10, 20 20, 20 20, There is no output displayed.
Back
10 20
20 10
7.
FLASHCARD QUESTION
Front
For what values of n will the code segment generate output? Options: 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 all values of n NOT in the range of [51 .. 99]
Back
For all values of n NOT in the range of [51 .. 99]
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
Erosion & Deposition Flashcard Review
Flashcard
•
KG - University
26 questions
Day 1
Flashcard
•
KG
20 questions
Vocabulary Flashcards
Flashcard
•
9th Grade - University
25 questions
PHYSICAL SCIENCE SUMMATIVE TEST Q4
Flashcard
•
11th Grade
18 questions
"Born A Crime" by Trevor Noah
Flashcard
•
10th Grade - University
16 questions
April Fools Trivia
Flashcard
•
KG - University
22 questions
Arabic Vocab
Flashcard
•
KG - University
19 questions
Home Vocabulary Flashcards
Flashcard
•
KG
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade