AP CS A Unit 3

Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

19 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Consider the following code, assuming grade is an int: Which of the following will always produce the same result as the code above, regardless of the value of grade?
Back
2.
FLASHCARD QUESTION
Front
What is output by the following code? Options: 11, 15, 31, error
Back
11
3.
FLASHCARD QUESTION
Front
Consider the following incomplete code segment. Consider the following potential replacements for /* missing code */. Which of these replacements will cause the code segment to always print false? Assume that Math is imported correctly into our program. Options: (int)(Math.random() * 10) + 20, (int)(Math.random() * 10) + 25, (int)(Math.random() * 10) + 30, (int)(Math.random() + 30)
Back
(int)(Math.random() * 10) + 20
4.
FLASHCARD QUESTION
Front
Given the variables, which boolean condition is true? int a = 10; int b = 10; Options: a < b && a == b, a < b && a != b, a > b || a != b, b >= a && a >= b
Back
b >= a && a >= b
5.
FLASHCARD QUESTION
Front
The following if statement tests the snowfall in Alaska during the months of December, January and February. Assume low represents a threshold determined to be the least amount of snow required to be normal and high represents a threshold determined to be the most amount of snow required to be normal and snow represents the amount of snow in inches for that month. All variables are doubles. It could be replaced with:
Back
6.
FLASHCARD QUESTION
Front
The following truth table matches which boolean condition?
Options: A && ( A || B ), !A && ( A || !B ), A && ( A && B ), A || ( A || B )
Back
A || ( A || B )
7.
FLASHCARD QUESTION
Front
To test if a grade (represented by the double variable g) is a B (between 80 - inclusive - and 90 exclusive) you would use the following if statement: if (g ___ 90 ___ g ___ 90). What set of three symbols correctly fills in the blanks in the order they appear?
Back
>= && <
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Python Functions

Flashcard
•
9th - 12th Grade
12 questions
2.3.1 Cyber Securing Ecommerce Data

Flashcard
•
9th - 12th Grade
15 questions
Understanding the TRIBE Acronym

Flashcard
•
9th - 12th Grade
16 questions
AP CA A Unit 4 Review

Flashcard
•
11th - 12th Grade
15 questions
Volume AP Calculus

Flashcard
•
9th - 12th Grade
19 questions
AP CS A Unit 3 Review

Flashcard
•
11th - 12th Grade
13 questions
Python If Else Statements

Flashcard
•
9th - 12th Grade
12 questions
Programming Languages Vocabulary

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

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

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade