Category 1
Category 2
Category 3
Category 4
Category 5
100

The ____ class contains standard methods for testing the values of characters.

Characters

100

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

equals()


100

The ____ method requires an integer argument that indicates the position of the character at that position, starting at 0.

charAt()

100

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

infinite

100

Returns the lowercase equivalent of the argument

toLowerCase()

200

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

value of 10

200

The ____ method returns the length of a String.

length()

200

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

insert()

200

System.out.println(“Your name is " + yourName);

The above statement is an example of ____, which is used to join Strings.

concatenation

200

Appending strings together is known as

concatenation

300

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

Reference

300

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.

compareTo()


300

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.

setCharAt()

300

The String class ____ method is similar to the equals() method. As its name implies, this method does not consider case when determining if two Strings are equivalent.

equalsCase()

300

Determines whether a specific character occurs within a String 

indexOf()

400

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

to

400

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

replace()

400

Assume that aName refers to Roger. What is returned by

aName.compareTo("Robert"); 

positive number

400

A literal string is called a(n) ____.

anonymous object

400

Object that can't be changed

immutable

500

The ____ method and the startsWith() method each take a String argument and return true or false if a String object does or does not end or start with the specified argument, respectively.

strEnd()

500

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

parseDouble()

500

Give an example that correctly declares and initializes a String object

String greeting = "Hello";


500

Takes two integer arguments: a start position and an end position

substring()

500

With ____ loops, the order of the conditional expressions can be important.

nested

M
e
n
u