nerdexam
GIAC

GSSP-.NET · Question #374

(Topic 3) Allen works as a Software Developer for Mansoft Inc. He creates a Console application. He writes the following line of code in the application: String str="ABC's World"; According to the…

The correct answer is A. String st1="Hello" + str; B. int j=str.Length; D. str=str+10. See the full explanation below for the reasoning.

Question

  • (Topic 3)

Allen works as a Software Developer for Mansoft Inc. He creates a Console application. He writes the following line of code in the application:

String str="ABC's World"; According to the given line of code, which of the following are legal statements? Each correct answer represents a part of the solution. Choose all that apply.

Options

  • AString st1="Hello" + str;
  • Bint j=str.Length;
  • Cstr[2]="y";
  • Dstr=str+10;
  • Estr=5;

How the community answered

(25 responses)
  • A
    76% (19)
  • C
    8% (2)
  • E
    16% (4)

Community Discussion

No community discussion yet for this question.

Full GSSP-.NET Practice