Functions And Methods In C Sharp - Study Mode

[#11] In C#, which keyword is used to exit from a method without returning any value?
Correct Answer

(B) exit
(F) return

[#12] Which of these methods is executed first before execution of any other thing that takes place in a program?
Correct Answer

(C) static method

[#13] Which of these can be used to differentiate two or more methods having same name?
Correct Answer

(D) All of the mentioned

[#14] Which of these data types can be used for a method having a return statement in it?
Correct Answer

(D) all of the mentioned
(H) all of the mentioned

[#15] What is the process of defining more than one method in a class differentiated by parameters known as?
Correct Answer

(B) Function overloading