Question
bool is_int(789.54)
a.
True
b.
False
c.
1
d.
None of the mentioned
Posted under Object Oriented Programming Using C++
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What is the value of the bool? bool is_int(789.54)
Similar Questions
Discover Related MCQs
Q. What happens when a null pointer is converted into bool?
View solution
Q. Which of the following statements are false ?
View solution
Q. For what values of the expression is an if-statement block not executed?
View solution
Q. Which of the two operators ++ and — work for the bool datatype in C++?
View solution
Q. Evaluate the following
(false && true) || false || true
View solution
Q. How many characters are specified in the ASCII scheme?
View solution
Q. Select the right option.
Given the variables p, q are of char type and r, s, t are of int type
1. t = (r * s) / (r + s);
2. t = (p * q) / (r + s);
View solution
Q. Which of the following belongs to the set of character types?
View solution
Q. How do we represent a wide character of the form wchar_t?
View solution
Q. In C++, what is the sign of character data type by default?
View solution
Q. Is the size of character literals different in C and C++?
View solution
Q. Suppose in a hypothetical machine, the size of char is 32 bits. What would sizeof(char) return?
View solution
Q. What constant defined in <climits> header returns the number of bits in a char?
View solution
Q. The size_t integer type in C++ is?
View solution
Q. Which of these expressions will return true if the input integer v is a power of two?
View solution
Q. Which of these expressions will make the rightmost set bit zero in an input integer x?
View solution
Q. Which of these expressions will isolate the rightmost set bit?
View solution
Q. 0946, 786427373824, ‘x’ and 0X2f are _____ _____ ____ and _____ literals respectively.
View solution
Q. Which of the following is not one of the sizes of the floating point types?
View solution
Q. Which of the following is a valid floating point literal?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Object Oriented Programming Using C++? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!