Users Also Read
MCQ's Search Engine
Electrical Engineering
Mechanical Engineering
Civil Engineering
Automobile Engineering
Chemical Engineering
Computer Engineering
Electronics Engineering
Medical Science Engg
Which of the following statements are correct about the C#.NET code snippet given below? sample c; c = new sample(); | |
A. | It will create a nameless object of the type sample. [Wrong Answer] |
B. | It will create a reference on the stack and an object of the type sample on the heap. [Wrong Answer] |
C. | Both (a) and (b) [Correct Answer] |
D. | It will create an object of the type sample either on the heap or on the stack depending on the size of the object. [Wrong Answer] |