a) null b) void c) empty d) free Answer: b ...
View QuestionWhich is correct with respect to the size of the data types?
a) char > int < float b) int < char > float c) char < int < float d) char ...
View QuestionWhich of three sizes of floating point types should be used when extended precision is required?
a) float b) double c) long double d) extended float Answer: c Explanation: Float for single precision, ...
View QuestionWhat is the range of the floating point numbers?
a) -3.4E+38 to +3.4E+38 b) -3.4E+38 to +3.4E+34 c) -3.4E+38 to +3.4E+36 d) -3.4E+38 to +3.4E+32 Answer: ...
View QuestionWhich of the following is a valid floating-point literal?
a) f287.333 b) F287.333 c) 287.e2 d) 287.3.e2 Answer: c Explanation: To make a floating point literal, ...
View QuestionWhich of the following is not one of the sizes of the floating point types?
a) short float b) float c) long double d) double Answer: a Explanation: Floating point types occur in only ...
View QuestionWhat constant defined in <climits> header returns the number of bits in a char?
What constant defined in <climits> header returns the number of bits in a char? a) CHAR_SIZE b) SIZE_CHAR
View QuestionSuppose in a hypothetical machine, the size of char is 32 bits. What would sizeof(char) return?
a) 4 b) 1 c) Implementation dependent d) Machine dependent Answer: b Explanation: The standard does NOT require ...
View QuestionIs the size of character literals different in C and C++?
a) Implementation defined b) Can’t say c) Yes, they are different d) No, they are ...
View QuestionIn C++, what is the sign of character data type by default?
a) Signed b) Unsigned c) Implementation dependent d) Unsigned Implementation Answer: c Explanation: ...
View Question