Unit 1
Unit 2
Unit 3
Unit 4
Random
100

A ___________ is a name for a location in the computers memory where data can be stored. 

variable

100

When an object is created from a class it is called _____________.

instantiation

100

The ____________ operator returns the remainder of one number divided by another number.

modulus (mod) (%)

100

A critical thing to remember when writing a while statement is that it ______________ have a semicolon after the parentheses of the while loop header.

does not

100

What is the binary conversion for 23 (base 10)? 

10111 (base 2)

200

The ____________ operator is represented by the = sign and assigns a variable a value. 

assignment

200

Rectangle(int x, int y, int width, int height)

Rectangle is the name of the _____________ and x, y, width and height are the formal parameters.

constructor

200

What is wrong with the following?

if x < y

    x *= 2;

missing parentheses around boolean expression

if (x < y)

    x *= 2;

200

The ________ statement will completely break out of the loop, and move control to the statement immediately following the loop.

break

200

Where should your phone be placed when you are in class?

In the class phone pockets. On your way into class. Go do that now if you didn't. 

300

What is the missing code?

Scanner objName = new Scanner(____________); 

300

A ______ method performs an action without returning any value.

void

300

A && (!A || B) is equivalent to:

❏ A && B

❏ A || B

❏ !(A || B)

❏ true

❏ false

A && B

300

The ____________ statement will jump to the end of the loop, skipping over any other statements inside the loop, continuing the execution of the loop as designed.

continue

300

What date is AP CS A exam for 2022?

May 4th

400

Many programs use a ________________ where the user can interact with dialog boxes, buttons, menus and tabs to enter data and receive output.

GUI - Graphical User Interface

400

The ________ method of the Scanner class will read ONE word, or any series of characters up to a blank space or pressing the Enter key, from the console.

next()

400

Two object references, or object variables are considered ___________ if they both refer to the same object, that is, they each contain the same address.

aliases

400

If we have an outer loop and inner loop, we are likely describing a what?

A nested loop

400

What is Mrs. Staffen's first name? 

Wendy (but don't call her that)

500

+=   -=  %=  /=  *= are all examples of __________ assignment operators. 

compound

500

The Integer class is called a __________ class.

wrapper

500

_____________________ is a very important law or identity in Boolean Algebra, which is the logical branch of mathematics on which programming logic is based.

not (A and B) is equivalent to not A or not B; and

not (A or B) is equivalent to not A and not B.

De Morgan's Law

500

How many dollar signs will this code segment print?

for(int i = 7; i > 3; i--)

   System.out.print("$");

7 - 3 = 4

The correct answer is 4. 

500

What is Mr. Thompson's first name?

Chase (but don't call him that)