C# Programming - Datatypes

Why C# Programming Datatypes?

In this section you can learn and practice C# Programming Questions based on "Datatypes" and improve your skills in order to face the interview, competitive examination and various entrance test (CAT, GATE, GRE, MAT, Bank Exam, Railway Exam etc.) with full confidence.

Where can I get C# Programming Datatypes questions and answers with explanation?

IndiaBIX provides you lots of fully solved C# Programming (Datatypes) questions and answers with Explanation. Solved examples with detailed answer description, explanation are given and it would be easy to understand. All students, freshers can download C# Programming Datatypes quiz questions with answers as PDF files and eBooks.

Where can I get C# Programming Datatypes Interview Questions and Answers (objective type, multiple choice)?

Here you can find objective type C# Programming Datatypes questions and answers for interview and entrance examination. Multiple choice and true or false type questions are also provided.

How to solve C# Programming Datatypes problems?

You can easily solve all kind of C# Programming questions based on Datatypes by practicing the objective type exercises given below, also get shortcut methods to solve C# Programming Datatypes problems.

Exercise :: Datatypes - General Questions

  • Datatypes - General Questions
1. 

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

Answer: Option D

Explanation:

No answer description available for this question. Let us discuss.

2. 

Which of the following is an 8-byte Integer?

A. Char
B. Long
C. Short
D. Byte
E. Integer

Answer: Option B

Explanation:

No answer description available for this question. Let us discuss.

3. 

Which of the following is NOT an Integer?

A. Char
B. Byte
C. Integer
D. Short
E. Long

Answer: Option A

Explanation:

No answer description available for this question. Let us discuss.

4. 

Which of the following statements is correct?

A. Information is never lost during narrowing conversions.
B. The CInteger() function can be used to convert a Single to an Integer.
C. Widening conversions take place automatically.
D. Assigning an Integer to an Object type is known as Unboxing.
E. 3.14 can be treated as Decimal by using it in the form 3.14F.

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.

5. 

Which of the following are value types?

  1. Integer
  2. Array
  3. Single
  4. String
  5. Long

A. 1, 2, 5
B. 1, 3, 5
C. 2, 4
D. 3, 5

Answer: Option B

Explanation:

No answer description available for this question. Let us discuss.