Assuming that a program has the following string object definition, which statement correctly assigns the string literal "Jane" to the string object?

string name;

a. name = Jane;
b. name = 'Jane';
c. name = "Jane";
d. name = ;
e. string name = {Jane};

c. name = "Jane";

Computer Science & Information Technology

You might also like to view...

Which formatting flag indicates that the floating-point values should be output with a thousands separator?

a. plus (+). b. minus (-). c. comma (,). d. period (.).

Computer Science & Information Technology

Matches between a keyword search and resulting occurrences are called ______.

A. hits B. keywords C. tags D. metasearches

Computer Science & Information Technology