When an expression containing a ____ is part of an if statement, the assignment is illegal.

A ____ is an error not detected until the program asks the computer to do something wrong, or even illegal, while executing.

A program written in ____ is the most basic circuitry-level language.

A ____ data type can hold 14 or 15 significant digits of accuracy.

A ____ is a named memory location that you can use to store a value.

A data item is ____ when it cannot be changed while a program is running.

A(n) ____ dialog box asks a question and provides a text field in which the user can enter a response.

A(n) ____ dialog box typically displays the options Yes, No, and Cancel.

A(n) ____ variable can hold only one of two values: true or false.

Each primitive type in Java has a corresponding class contained in the java.lang package. These classes are called ____ classes.

In Java, ____ is a built-in class that provides you with the means for storing and manipulating character strings.

In Java, when a numeric variable is concatenated to a String using the ____, the entire expression becomes a String.

In Java, you use variables of type ____ to store integers, or whole numbers.

Primitive types serve as the building blocks for more complex data types, called ____ types.

The ____ is the type to which all operands in an expression are converted so that they are compatible with each other.

The characters ____ move the cursor to the next line when used within a println() statement.

The percent sign is the ____ operator.

The term ____ refers to the mathematical accuracy of a value.

What is the value of result after the following statement is executed? int result = 2 + 3 * 4;

When a numeric variable is concatenated to a String, the entire expression becomes a(n) ____.

Which escape sequence will move the cursor to the beginning of the current line?

Which of the following is NOT a component of a variable declaration statement?

You can store any character, including nonprinting characters such as a backspace or a tab, in a(n) ____ variable.

You may declare an unlimited number of variables in a statement as long as the variables are ____.

You use ____ operators to perform calculations with values in your programs.

You use the ____ data type to hold any single character.

____ occurs when both of the operands are integers.

____ refers to the order in which values are used with operators.

A method header is also called a(n) _____.

A unique identifier is most likely used as a ____ key in a database.

A(n) ____ causes a value to be sent from a called method back to the calling environment.

A(n) ____ constructor is one that requires no arguments.

A(n) ____ is a program module that contains a series of statements that carry out a task.

A(n) ____ method is a method that creates and initializes class objects.

A(n) ____ variable is known only within the boundaries of the method.

After an object has been instantiated, its methods can be accessed using the object's _____, a dot, and a method call.

Assigning ____ to a field means that no other classes can access the field’s values.

Data items you use in a call to a method are called ____.

Every object is a _____ of a more general class.

For ease in locating class methods, many programmers store them in ____ order.

In order to allocate the needed memory for an object, you must use the ____ operator.

Method names that begin with ____ and set are very typical.

Methods that retrieve values are called ____ methods.

Methods used with object instantiations are called ____ methods.

Public classes are accessible by all objects, which means that public classes can be ____, or used as a basis for any other class.

The ____ method executes first in an application, regardless of where you physically place it within its class.

The arguments in a method call are often referred to as ____.

The name of the ____ is always the same as the name of the class whose objects it constructs.

When a variable ceases to exist at the end of a method, programmers say the variable ____.

When an application is run, the method that must be executed first must be named ____.

Boolean fields set to true

Which of the following is NOT an initial value assigned to an object’s data field by a default constructor?

____ is a principle of object-oriented programming that describes the encapsulation of method details within a class.

____ parameters are variables in a method declaration that accept the values from the actual parameters.

A ____ checks a value, and based on the result performs one of two actions.

A ____ consists of written steps in diagram form, as a series of shapes connected by arrows.

A logical structure called a(n) ____ structure is when one step follows another unconditionally.

A(n) ____ is a series of if statements that determine whether a value falls within a specified range.

A(n) ____ statement is the decision structure you use when you need to take one or the other of two possible courses of action.

Just as you can block statements that depend on an if, you can also block statements that depend on a(n) ____.

Statements in which an if structure is contained inside another if structure are commonly called ____ if statements.

The AND operator is written as two ____.

The ____ operator is always evaluated before the OR operator.

The ____ operator is written as the exclamation point ( ! ).

The ____ requires three expressions separated with a question mark and a colon.

The ____ statement is useful when you need to test a single variable against a series of exact integer, character, or string values.

The compiler does not take indentation into account when compiling code, but consistent indentation can help readers understand a program’s ____.

The simplest statement you can use to make a decision is the ____ statement.

When an expression containing a ____ is part of an if statement, the assignment is illegal.

When using equals and not equals for comparisons with objects, you compare the objects’ ____ instead of actual values.

When working with logical operators, you can always use ____ to change precedence.

When you block statements, you must remember that any ____ you declare within a block is local to that block.

When you execute an if…else statement, only one of the resulting actions takes place depending on the evaluation of the ____ following the if.

When you place a block within an if statement, it is crucial to place the ____ correctly.

In Java, you can leave out the ____ statements in a switch structure.

You can use the ____, which is written as ||, if you want some action to occur when at least one of two conditions is true.

A ____ is a structure that allows repeated execution of a block of statements.

A for loop provides a convenient way to create a(n) ____ loop.

A loop controlled by user entry is a type of ____ loop.

A loop that never ends is called a(n) ____ loop.

A(n) ____ loop is a special loop that is used when a definite number of loop iterations is required.

A(n) ____ loop is one that performs no actions other than looping.

An indefinite loop is a(n) ____ loop.

As long as methods do not depend on one another, ____ is a technique that can improve loop performance by combining two loops into one.

Before entering a loop, the first input statement, or ____, is retrieved.

the loop control variable is false

In a do…while loop, the loop will continue to execute until ____.

In the expressions b = 8 and c = --b, what value will be assigned to the variable c?

It is important that the loop control ____ be altered within the body of the loop.

On many keyboards (though, *not* Mac laptops :(, the Break key is also the ____ key (Internet research answer).

The ____ loop checks the value of the loop control variable at the bottom of the loop after one repetition has occurred.

The order of the conditional expressions in the following is most important within a(n) ____ loop.   while(requestedNum > LIMIT || requestedNum < 0)…

The process of repeatedly increasing a value by some amount is known as ____.

Use a(n) ____ loop to execute a body of statements continually as long as the Boolean expression that controls entry into the loop continues to be true.

When creating a for loop, which statement will correctly assign values to more than one variable?

prefix increment operator

When you want to increase a variable’s value by exactly 1, use the ____.

You can initialize more than one variable in a for loop by placing a(n) ____ between the separate statements.

You use a unary minus sign preceding a value to make the value ____.

____ is the process of ensuring that a value falls within a specified range.

A StringBuilder object contains a memory block called a _____, which might or might not contain a string.

A ____ is a class for storing and manipulating changeable data that is composed of multiple characters.

A literal string is a(n) ____ object.

A(n) ____ comparison is based on the integer Unicode values of the characters.

A(n) ____ is a variable that holds a memory address.

Besides Double and Integer, other wrapper classes such as Float and Long also provide ____ methods that convert Strings to the wrapper types.

Strings and other objects that can’t be changed are known as ____.

System.out.println(“Your name is " + yourName); The above statement is an example of ____, which is used to join Strings.

The Character class ____ from java.lang.Object.

The String class ____ method evaluates the contents of two String objects to determine if they are equivalent.

The ____ method allows you to replace all occurrences of some character within a String.

The ____ method converts any object to a String.

The ____ method lets you add characters at a specific location within a StringBuilder object.

The ____ method returns the length of a String.

The ____ method takes a String argument and returns its double value.

The creators of Java chose ____ characters as the “extra” length for a StringBuilder object.

public boolean equals (String s)

The method header of the equals() method within the String class is ____.

The methods of the Character class that begin with ____ return a character that has been converted to the stated format.

To alter just one character in a StringBuilder, you can use the ____ method, which allows you to change a character at a specified position within a StringBuilder object.

To convert a String to an integer, you use the ____ class, which is part of java.lang and is automatically imported into programs you write.

When the String class ____ method is used to compare two Strings, it provides additional information to the user in the form of an integer value.

When you declare a variable of a basic, primitive type, such as int x = 10;, the memory address where x is located holds the ____.

String greeting = "Hello";

Which of the following correctly declares and initializes a String object?

You can tell that the equals() method takes a ____ argument because parentheses are used in the method call.

A locally declared variable always ____ another variable with the same name elsewhere in the class.

A method can receive ____ arguments, even if it is defined as needing double arguments.

A variable comes into existence, or ____, when you declare it.

Another name for a nonstatic member class is a(n) ____.

Due to automatic type promotion, when a method with a double parameter is passed an integer, the integer will be promoted to a(n) ____.

If a class’s only constructor requires an argument, you must provide an argument for every ____ of the class that you create.

If you want all objects to share a single nonchanging value, then the field is static and ______.

It is a convenience to be able to use one reasonable name for ____ that are functionally identical except for argument types.

It is not necessary to create an instance of the Math class because the constants and methods of the class are ____.

Object-oriented programmers use the term ____ when a child class contains a field or method that has the same name as one in the parent class.

The ____ package contains is implicitly imported into Java programs and is the only automatically imported, named package.

The ____ statement notifies the program that you will be using the data and method names that are part of the imported class or package.

The compiler determines which version of a method to call by the method’s ____.

The reference to an object that is passed to any object’s nonstatic class method is called the ____.

When an application contains just one version of a method, you can call the method using a(n) ____ of the correct data type.

When an object of one class is a data field within another class, they are related by ____.

When calling this() from a constructor, it must be the ____ statement within the constructor.

When they have the same name, variables within ____ of a class override the class’s fields.

When you instantiate an object from a class, ____ is reserved for each instance field in the class.

When you properly ____ a method, you can call it providing different argument lists, and the appropriate version of the method executes.

Within any class or method, the code between a pair of curly braces is called a(n) ____.

You can use ____ arguments to initialize field values, but you can also use arguments for any other purpose.

You can use the asterisk (*) as a ____, which indicates that it can be replaced by any set of characters.

____ involves using one term to indicate diverse meanings, or writing multiple methods with the same name but with different parameter lists.

____ variables are variables that are shared by every instantiation of a class.

What happens in a program if an if statement is false quizlet?

If the condition is false, the program skips the block of statements under if.

What is an if statement used for quizlet?

"if" statement is a construct that enables a program to specify alternative paths of execution. one-way if statement executes an action if and only if the condition is true. an if-else statement decides the execution path based on whether the condition is true or false.

What are the two parts of an if statement quizlet?

1. The if statement can have only one condition that evaluates to an integer value. 2. The if block is optional..
A condition and a body..
A check and an increment..
An increment and a body..
An increment and a return value..

When writing a statement with two line format you must be sure to type a semicolon at the end of the first line in order to ensure accurate results?

When writing a statement with the two-line format, you must be sure to type a semicolon at the end of the first line in order to ensure accurate results. Although it is possible to block statements that depend on an if, you cannot likewise block statements that depend on an else.