R

Ram Sharma • 193.86K Points
Coach

Q. Which of the following statements are correct about data types? 
1. If the integer literal exceeds the range of byte, a compilation error will occur. 
2. We cannot implicitly convert non-literal numeric types of larger storage size to byte. 
3. Byte cannot be implicitly converted to float. 
4. A char can be implicitly converted to only int data type. 
5. We can cast the integral character codes.

  • (A) 1,3,5
  • (B) 2,4
  • (C) 3,5
  • (D) 1,2,5
  • Correct Answer - Option(D)
  • Views: 188
  • Filed under category C#

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. Exception objects are derived from the class.

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

Q. The Garbage Collection solves_____________.

Q. Which of the following statements is correct about constructors?

Q. Which of the following statements are correct about a .NET Assembly? 1. It is the smallest deployable unit. 2. Each assembly has only one entry point - Main(), WinMain() or DLLMain(). 3. An assembly can be a Shared assembly or a Private assembly. 4. An assembly can contain only code and data. 5. An assembly is always in the form of an EXE file

Q. Which of the following is the correct way to access all elements of the Queue collection created using the C#.NET code snippet given below Queue q = new Queue(); q.Enqueue("Sachin"); q.Enqueue('A'); q.Enqueue(false); q.Enqueue(38); q.Enqueue(5.4);

Q. A variable which is declared inside a method is called a________variable

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?

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. Choose the correct statements about the LINQ?

Learn All C# MCQs


Question analytics