Home / Programming MCQs / C# MCQs / Question

R

Ram Sharma • 188.81K Points
Coach

Q. A class implements two interfaces each containing three methods. The class contains no instance data. Which of the following correctly indicate the size of the object created from this class?

(A) 12 bytes
(B) 24 bytes
(C) 0 byte
(D) 8 bytes

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#

The character pair ?: is a________________available in C#.

Which of the following statements is correct about the C#.NET code snippet given below? class Student s1, s2; // Here 'Student' is a user-defined class. s1 = new Student(); s2 = new Student();

The character pair?: is an __________ available in C#.

Which of the following statements is correct about the .NET Framework?

In case of components and namespaces,

An instance of a reference type variable is allocated memory on_______.

The connection to the database is established by

Which of the following benefits do we get on running managed code under CLR? 1. Type safety of the code running under CLR is assured. 2. It is ensured that an application would not access the memory that it is not authorized to access. 3. It launches separate process for every application running under it. 4. The resources are Garbage collected.

The C# provides special methods known as _____ methods to provide access to data members.

Which of the following statements are correct about an ArrayList collection that implements the IEnumerable interface? 1. The ArrayList class contains an inner class that implements the IEnumerator interface. 2. An ArrayList Collection cannot be accessed simultaneously by different threads. 3. The inner class of ArrayList can access ArrayList class's members. 4. To access members of ArrayList from the inner class, it is necessary to pass ArrayList class's reference to it. 5. Enumerator's of ArrayList Collection can manipulate the array.

Learn All C# MCQs