Data Types and Operators on C related Questions and Answers - Page 3

Question 21 : 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 23 : Variable name resolution (number of significant characters for the uniqueness of variable) depends on ___________
1. Compiler and linker implementations
2. Assemblers and loaders implementations
3. C language
4. None of the mentioned
View Answer   Discuss with Members

Question 24 : For which of the following, “PI++;” code will fail?
1. #define PI 3.14
2. char *PI = “A”;
3. float PI = 3.14;
4. none of the Mentioned
View Answer   Discuss with Members

Question 25 : Which of the following are unary operators?
1. sizeof
2.
3. ++
4. all of the mentioned
View Answer   Discuss with Members

Question 26 : Which is correct with respect to the size of the data types?
1. char > int > float
2. int > char > float
3. char < int < double
4. double > char > int
View Answer   Discuss with Members

Question 28 : What is the precedence of arithmetic operators (from highest to lowest)?
1. %, *, /, +, –
2. %, +, /, *, –
3. +, -, %, *, /
4. %, +, -, *, /
View Answer   Discuss with Members

Question 29 : When double is converted to float, then the value is?
1. Truncated
2. Rounded
3. Depends on the compiler
4. Depends on the standard
View Answer   Discuss with Members

Question 30 : Which of the data types has the size that is variable?
1. int
2. struct
3. float
4. double
View Answer   Discuss with Members


View 21 - 30 of 78 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