Which of the following statements about strings is NOT true?

A. When you use the assignment operator to assign a string to a String variable, the computer allocates memory space large enough to store the string.
B. When a string is assigned to a String variable, the string cannot be changed.
C. The class String contains many methods that allow you to change an existing string.
D. A String variable is actually a reference variable.


Answer: C

Computer Science & Information Technology

You might also like to view...

An array is a collection of data arranged in groups of rows

Indicate whether the statement is true or false.

Computer Science & Information Technology

Explain what a parameter query does.

What will be an ideal response?

Computer Science & Information Technology

Case WD 6-1Hilary has been assigned to put together a financial report that will be presented at the next sales meeting. Hilary changed the format of the table of contents, then a dialog box appeared asking if she wants to replace the current table of contents. Which button should she click?

A. No B. OK C. Format D. Replace All

Computer Science & Information Technology

In WEP, the ____ is a cyclic redundancy check (CRC) value calculated with a checksum based on the contents of the text.

A. initialization vector (IV) B. pseudo-random number generator (PRNG) C. integrity check value (ICV) D. RC4

Computer Science & Information Technology