Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. A sequence of characters enclosed within double quotation marks is a . a. sym

ID: 646485 • Letter: 1

Question

1. A sequence of characters enclosed within double quotation marks is a .
a. symbolic string
b. literal string
c. prompt
d. command

2. To create a String object, you can use the keyword before
the constructor call, but you are not required to use this format.
a. object
b. create
c. char
d. new

3. A String variable name is a .
a. reference
b. value
c. constant
d. literal

4. The term that programmers use to describe objects that cannot be
changed is .
a. irrevocable
b. nonvolatile
c. immutable
d. stable

5. Suppose that you declare two String objects as:
String word1 = new String("happy");
String word2;
When you ask a user to enter a value for word2, if the user types

Explanation / Answer

1-b

2-d

3-b

4-a

5-c

6-a

7-a

8-b

9-d

10-b

11-c

12-c

13-d

14-a

15-b

16-c

17-d

18-c

19-a

20-b

b