Data Types and Operators on C related Questions and Answers

Question 1 : Which among the following are the fundamental arithmetic operators, i.e, performing the desired operation can be done using that operator only?
1. +, –
2. +, -, %
3. +, -, *, /
4. +, -, *, /, %
View Answer   Discuss with Members

Question 2 : 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 3 : 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 4 : In expression i = g() + f(), first function called depends on __________
1. Compiler
2. Associativiy of () operator
3. Precedence of () and + operator
4. Left to write of the expression
View Answer   Discuss with Members

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

Question 6 : %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 7 : 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 9 : 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 10 : Which of the following is not an operator in C?
1. ,
2. sizeof()
3. ~
4. None of the mentioned
View Answer   Discuss with Members


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