Home / Programming MCQs / C# MCQs / Question

R

Ram Sharma • 178.09K Points
Coach

Q. Polymorphism occurs when the methods of the child class.

(A) Are Virtual
(B) Have different return types and arguments than the parent class
(C) Maintain the same return type and arguments as the parent class, but implement it differently
(D) Override the parent class methods but maintain the implementation

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Related MCQs on C#

Which of the following statements are correct? 1. We can assign values of any type to variables of type object. 2. When a variable of a value type is converted to object, it is said to be unboxed. 3. When a variable of type object is converted to a value type, it is said to be boxed. 4. Boolean variable cannot have a value of null. 5. When a value type is boxed, an entirely new object must be allocated and constructed.

Which of the following cannot be used to declare an interface in C#?

The size of integer is___________.

Forms and reports, used for entering and editing records, and for generating useful information in reports are

Which is/are the correct method(s) to input a float value in C#?

Which of the following statements are correct about JIT? 1. JIT compiler compiles instructions into machine code at run time. 2. The code compiler by the JIT compiler runs under CLR. 3. The instructions compiled by JIT compilers are written in native code. 4. The instructions compiled by JIT compilers are written in Intermediate Language (IL) code. 5. The method is JIT compiled even if it is not called

Constructors are used to

Which of the following statements are correct about JIT? 1. JIT compiler compiles instructions into machine code at run time. 2. The code compiler by the JIT compiler runs under CLR. 3. The instructions compiled by JIT compilers are written in native code. 4. The instructions compiled by JIT compilers are written in Intermediate Language (IL) code.

Which feature enables to obtain information about use and capabilities of types at runtime?

Boxing converts a value type on the stack to an ______ on the heap.

Learn All C# MCQs