Introduction To C Sharp - Study Mode
[#1] In C#, what is the keyword used to prevent a class from being inherited?
Correct Answer
(D) sealed
[#2] Which of the following is NOT a valid C# primitive data type?
Correct Answer
(C) boolean
[#3] What is the correct syntax to declare a nullable type in C#?
Correct Answer
(C) int? nullableInt
[#4] In C#, what is the purpose of the 'base' keyword?
Correct Answer
(B) Refers to the base class
[#5] What is the purpose of the 'readonly' keyword in C#?
Correct Answer
(C) Indicates that a field can only be assigned once