98-361 MTA Software |! |! |!
Development Fundamentals exam |! |! |!
with accurate solutions |! |!
What is the Main method? - Correct answer ✔It serves as the entry point to a
|! |! |! |! |! |! |! |! |! |! |! |! |! |! |!
program. When runtime executes a program, it always starts at the Main
|! |! |! |! |! |! |! |! |! |! |! |! |!
method.
What does the Switch statement do? - Correct answer ✔It works like CASE,
|! |! |! |! |! |! |! |! |! |! |! |! |!
and allows for different options to run different code, which uncomplicates
|! |! |! |! |! |! |! |! |! |! |!
having to combine several if statements.
|! |! |! |! |!
Name the 4 C# control structures. - Correct answer ✔while loop, do-while
|! |! |! |! |! |! |! |! |! |! |! |!
loop, for loop and foreach loop
|! |! |! |! |!
When does the do-while loop test the condition? - Correct answer ✔At the
|! |! |! |! |! |! |! |! |! |! |! |! |!
bottom of the loop. |! |! |!
What is the foreach loop useful for? - Correct answer ✔Iterating through
|! |! |! |! |! |! |! |! |! |! |! |!
elements of a collection or array. |! |! |! |! |!
What is recursion? - Correct answer ✔A programming technique that causes
|! |! |! |! |! |! |! |! |! |! |!
a method to call itself in order to compute a result.
|! |! |! |! |! |! |! |! |! |!
, How to you use a try-catch block? - Correct answer ✔Put the code that could
|! |! |! |! |! |! |! |! |! |! |! |! |! |! |!
throw an exception in the try section, and place the code that catches
|! |! |! |! |! |! |! |! |! |! |! |! |!
exceptions in the catch section. |! |! |! |!
What is the finally block used for? - Correct answer ✔It is always executed
|! |! |! |! |! |! |! |! |! |! |! |! |! |!
regardless of whether an exception has been thrown, so you can put clean up
|! |! |! |! |! |! |! |! |! |! |! |! |! |!
code here such as disconnections.
|! |! |! |!
What is a Class? - Correct answer ✔The template from which individual
|! |! |! |! |! |! |! |! |! |! |! |!
objects are created. |! |!
What is a delegate? - Correct answer ✔A special type that is used to
|! |! |! |! |! |! |! |! |! |! |! |! |! |!
encapsulate a method with a specific signature. |! |! |! |! |! |!
Properties are often referred to as "_____" fields because they can include
|! |! |! |! |! |! |! |! |! |! |! |!
code for checking data consistency or validity. - Correct answer ✔Smart
|! |! |! |! |! |! |! |! |! |!
A property has two _________ - Correct answer ✔Accessors, get and set
|! |! |! |! |! |! |! |! |! |! |!
Properties are often assigned with a ______ access modifier - Correct answer
|! |! |! |! |! |! |! |! |! |! |! |!
✔Public
The usual programming pattern is that all the data fields of a class should be
|! |! |! |! |! |! |! |! |! |! |! |! |! |! |!
declared private, - Correct answer ✔and that access to these private fields
|! |! |! |! |! |! |! |! |! |! |! |!
should be via public properties that check the data values for validity
|! |! |! |! |! |! |! |! |! |! |!
Development Fundamentals exam |! |! |!
with accurate solutions |! |!
What is the Main method? - Correct answer ✔It serves as the entry point to a
|! |! |! |! |! |! |! |! |! |! |! |! |! |! |!
program. When runtime executes a program, it always starts at the Main
|! |! |! |! |! |! |! |! |! |! |! |! |!
method.
What does the Switch statement do? - Correct answer ✔It works like CASE,
|! |! |! |! |! |! |! |! |! |! |! |! |!
and allows for different options to run different code, which uncomplicates
|! |! |! |! |! |! |! |! |! |! |!
having to combine several if statements.
|! |! |! |! |!
Name the 4 C# control structures. - Correct answer ✔while loop, do-while
|! |! |! |! |! |! |! |! |! |! |! |!
loop, for loop and foreach loop
|! |! |! |! |!
When does the do-while loop test the condition? - Correct answer ✔At the
|! |! |! |! |! |! |! |! |! |! |! |! |!
bottom of the loop. |! |! |!
What is the foreach loop useful for? - Correct answer ✔Iterating through
|! |! |! |! |! |! |! |! |! |! |! |!
elements of a collection or array. |! |! |! |! |!
What is recursion? - Correct answer ✔A programming technique that causes
|! |! |! |! |! |! |! |! |! |! |!
a method to call itself in order to compute a result.
|! |! |! |! |! |! |! |! |! |!
, How to you use a try-catch block? - Correct answer ✔Put the code that could
|! |! |! |! |! |! |! |! |! |! |! |! |! |! |!
throw an exception in the try section, and place the code that catches
|! |! |! |! |! |! |! |! |! |! |! |! |!
exceptions in the catch section. |! |! |! |!
What is the finally block used for? - Correct answer ✔It is always executed
|! |! |! |! |! |! |! |! |! |! |! |! |! |!
regardless of whether an exception has been thrown, so you can put clean up
|! |! |! |! |! |! |! |! |! |! |! |! |! |!
code here such as disconnections.
|! |! |! |!
What is a Class? - Correct answer ✔The template from which individual
|! |! |! |! |! |! |! |! |! |! |! |!
objects are created. |! |!
What is a delegate? - Correct answer ✔A special type that is used to
|! |! |! |! |! |! |! |! |! |! |! |! |! |!
encapsulate a method with a specific signature. |! |! |! |! |! |!
Properties are often referred to as "_____" fields because they can include
|! |! |! |! |! |! |! |! |! |! |! |!
code for checking data consistency or validity. - Correct answer ✔Smart
|! |! |! |! |! |! |! |! |! |!
A property has two _________ - Correct answer ✔Accessors, get and set
|! |! |! |! |! |! |! |! |! |! |!
Properties are often assigned with a ______ access modifier - Correct answer
|! |! |! |! |! |! |! |! |! |! |! |!
✔Public
The usual programming pattern is that all the data fields of a class should be
|! |! |! |! |! |! |! |! |! |! |! |! |! |! |!
declared private, - Correct answer ✔and that access to these private fields
|! |! |! |! |! |! |! |! |! |! |! |!
should be via public properties that check the data values for validity
|! |! |! |! |! |! |! |! |! |! |!