1/33
Practice fill-in-the-blank flashcards covering computer hardware architecture, binary and number systems, high-level languages, Java programming basics, the software development life cycle, GridWorld objects, primitive data types, arithmetic operators, casting, Scanner input, Math methods, and printf formatting.

The computer hardware component shown here, known as the "brain" of the computer that controls programs, performs arithmetic, and manages data, is the __________.
CPU
Computer memory that loses its stored data when the power is turned off is classified as __________.
volatile
The smallest unit of information processed on a computer, consisting of a single digit (0 or 1), is called a(n) __________.
bit
One Gigabyte is equal to 230 bytes, which corresponds exactly to __________ bytes.
1,073,741,824
Converting a binary number to hexadecimal requires grouping binary digits into groups of __________ digits from right to left.
4
In early computers, a program called a(n) __________ was required to translate assembly language into CPU-executable machine language.
assembler
The structured high-level programming language developed in the late 1950s for business purposes by Grace Hopper and the Navy is __________.
COBOL
The Java programming language was developed by James Gosling and his team at Sun in the year __________.
1995
In the design phase of software development, continuing to refine a design one step at a time until complete is known as __________.
Stepwise Refinement
Testing each individual class by itself during the implementation phase is termed a(n) __________.
Unit Test
Compiling Java source code creates a bytecode file that is executed by the __________.
Java Virtual Machine (JVM)
In Java string literals, the escape sequence used to insert a tab character is __________.
\t
An error detected by the compiler resulting from a violation of programming language rules is a(n) __________ error.
syntax

In the GridWorld grid shown, row and column numbering is 0-based, meaning the upper-left corner coordinates are __________.
(0,0)
A method that inspects an object without modifying its internal data is classified as a(n) __________ method.
accessor
A method that modifies the internal data or state of an object is classified as a(n) __________ method.
mutator
Creating or constructing an object by invoking a class constructor with the new operator is called __________.
instantiation
When two or more object variables store a reference to the exact same object in memory, they are known as __________.
aliases
Classes defined in the __________ package are automatically available and do not require an explicit import statement.
java.lang
When a class provides multiple definitions for a method with different parameter signatures, the method is said to be __________.
overloaded
The method of the String class that returns the total count of characters, including whitespace, is __________.
length()
The primitive integer data type in Java that occupies exactly 1 byte of memory and stores values from −128 to 127 is __________.
byte
In Java, the expression 7/2 evaluates to __________ because both operands are integers.
3
In Java integer remainder division, the expression −17%5 evaluates to __________.
−2
Attempting integer division by zero in Java throws a run-time exception named __________.
ArithmeticException
Dividing a floating-point number by 0.0 in Java does not crash the program but instead yields the value __________.
Infinity
To declare a constant identifier whose value cannot be reassigned once initialized, Java requires the reserved word __________.
final
Explicitly forcing Java to convert a value from one data type to another, such as converting a double to an int, is called __________.
casting
Due to left-to-right evaluation, the Java expression "hello" + 4 + 2 evaluates to the string __________.
"hello42"
When using a Scanner object, calling nextLine() immediately after nextInt() or nextDouble() will read an empty string unless you first __________ the newline character.
flush
A method declared with the modifier __________ belongs directly to the class rather than to a specific object instance.
static
The standard Java formula to generate a pseudo-random integer in the closed range [low, high] using Math.random() is __________.
(int)(Math.random()∗(high+1−low))+low
In a printf format specifier, the conversion character used to format a decimal (base 10) integer is __________.
d
In a printf format specifier, the optional flag character that causes the output to be left-aligned is __________.
-