Datatypes on C# related Questions and Answers

Question 1 : What is the size of a Decimal?
1. 4 byte
2. 8 byte
3. 16 byte
4. 32 byte
View Answer   Discuss with Members

Question 2 : Which of the following is the correct default value of a Boolean type?
1. 0
2. 1
3. TRUE
4. FALSE
5. -1
View Answer   Discuss with Members

Question 3 : Which of the following is the correct ways to set a value 3.14 in a variable pi such that it cannot be modified?
1. float pi = 3.14F;
2. #define pi 3.14F;
3. const float pi = 3.14F;
4. const float pi; pi = 3.14F;
5. pi = 3.14F;
View Answer   Discuss with Members

Question 4 : Which of the following is the correct size of a Decimal datatype?
1. 8 Bytes
2. 4 Bytes
3. 10 Bytes
4. 16 Bytes
5. None of the above.
View Answer   Discuss with Members

Question 5 : Which of the following does not store a sign?
1. Short
2. Integer
3. Long
4. Byte
5. Single
View Answer   Discuss with Members

Question 7 : Which of the following is NOT an Integer?
1. Char
2. Byte
3. Integer
4. Short
5. Long
View Answer   Discuss with Members

Question 8 : Which of the following is an 8-byte Integer?
1. Char
2. Long
3. Short
4. Byte
5. Integer
View Answer   Discuss with Members


View 1 - 8 of 8 Questions

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter