Functions And Methods In C Sharp - Study Mode

[#16] What is the purpose of method parameters in C#?
Correct Answer

(C) To pass data to the method
(H) To pass data to the method
(K) To pass data to the method

[#17] Which of the following access modifiers allows a method to be accessed only within the same assembly in C#?
Correct Answer

(A) internal

[#18] What is the result of the expression Math.Floor(4.6) in C#?
Correct Answer

(D) 4

[#19] In C#, which keyword is used to define a method that is implemented in a derived class to provide a specific implementation for a method defined in the base class?
Correct Answer

(B) override

[#20] In C#, which method is used to convert a string to its uppercase equivalent?
Correct Answer

(D) ToUpper()