GIAC
GSSP-NET · Question #327
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…
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
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
(39 responses)- A77% (30)
- C15% (6)
- E8% (3)
Community Discussion
No community discussion yet for this question.