nerdexam
GIAC

GSSP-NET · Question #224

GSSP-NET Question #224: Real Exam Question with Answer & Explanation

Sign in or unlock GSSP-NET to reveal the answer and full explanation for question #224. The question stem and answer options stay visible for context.

Question

Maria works as a Software Developer for ABC Inc. She develops a Console application using Visual Studio .NET 2005. She writes the following code in the application: String st="Hello World"; int MyBegin=1; int MyEnd=3; Console.WriteLine(st.Substring(MyBegin, MyEnd)); What will happen when she tries to compile and execute the application?

Options

  • AThe application will compile successfully and display "el" as the output.
  • BThe application will compile successfully and display "ell" as the output.
  • CA compile-time error will occur stating "No method matching substring(int, char) exists".
  • DThe application will compile successfully and display "Hel" as the output.

Unlock GSSP-NET to see the answer

You've previewed enough free GSSP-NET questions. Unlock GSSP-NET for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full GSSP-NET Practice
Maria works as a Software Developer for ABC Inc. She develops a... | GSSP-NET Q#224 Answer | NerdExam