R

Ram Sharma • 193.86K Points
Coach

Q. 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.

  • (A) 2,5
  • (B) 1,5
  • (C) 3,4
  • (D) 2,3

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.

Be the first to start discuss.

Related MCQs on C#

Q. What will be the output of the following C# code?

Q. Which of the following statements is incorrect about delegate?

Q. 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.

Q. Which of the following is included in Visual Studio IDE?

Q. A computer application for managing databases and pulling together data to generate reports and make decisions is known as a(n)

Q. A Managed provider can be considered as a set of objects that mediate between a _____________ and _______________

Q. Which of the following statements are TRUE about the .NET CLR? 1. It provides a language-neutral development & execution environment. 2. It ensures that an application would not be able to access memory that it is not authorised to access. 3. It provides services to run "managed" applications. 4. The resources are garbage collected. 5. It provides services to run "unmanaged" applications.

Q. Which of the following statements are correct? 1. Instance members of a class can be accessed only through an object of that class. 2. A class can contain only instance data and instance member function. 3. All objects created from a class will occupy equal number of bytes in memory. 4. A class can contain Friend functions. 5. A class is a blueprint or a template according to which objects are created.

Q. C# does not support:

Q. How many enumerators will exist if four threads are simultaneously working on an ArrayList object?

Learn All C# MCQs