Floating Point Issues on C related Questions and Answers

Question 1 : What is the sizeof(char) in a 32-bit C compiler?
1. 1 bit
2. 2 bits
3. 1 Byte
4. 2 Bytes
View Answer   Discuss with Members

Question 2 : %f access specifier is used for ________
1. Strings
2. Integral types
3. Floating type
4. All of the mentioned
View Answer   Discuss with Members

Question 3 : Which among the following is never possible as an output for float?
1. 3.666666
2. 3.666
3. 3
4. None of the mentioned
View Answer   Discuss with Members

Question 4 : What type of value does sizeof return?
1. char
2. short
3. unsigned int
4. long
View Answer   Discuss with Members

Question 5 : What is the size of float in a 32-bit compiler?
1. 1
2. 2
3. 4
4. 8
View Answer   Discuss with Members

Question 6 : Which of the following cannot be used inside sizeof?
1. pointers
2. functions
3. macro definition
4. none of the mentioned
View Answer   Discuss with Members

Question 7 : Which among the following has the highest precedence?
1. &
2. <<
3. sizeof()
4. &&
View Answer   Discuss with Members

Question 8 : In a 32-bit compiler, which 2 types have same size?
1. char and short
2. short and int
3. int and float
4. float and double
View Answer   Discuss with Members

Question 9 : Modulus for float could be achieved by?
1. a % b
2. modulus(a, b);
3. fmod(a, b);
4. mod(a, b);
View Answer   Discuss with Members

Question 10 : What is the sizeof(void) in a 32-bit C?
1. 0
2. 1
3. 2
4. 4
View Answer   Discuss with Members


View 1 - 10 of 24 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