Correct Answer : Option (A) : Yes
Explanation : C++ has bool as a fundamental data type.
Correct Answer : Option (B) : 128
Explanation : There are 128 characters defined in the C++ ASCII list.
Correct Answer : Option (C) : Unsigned integer of at least 16 bits
Explanation : The size_t type is used to represent the size of an object. Hence, it’s always unsigned. According to the language specification, it is at least 16 bits.
Correct Answer : Option (B) : short float
Explanation : Floating point types occur in only three sizes-float, long double and double.
Correct Answer : Option (A) : sizeof
Explanation : The sizeof operator gives the size of the object or type.
Correct Answer : Option (D) : integer
Explanation : In C++, enumerations are stored as integers by the compiler starting with 0.
int (*fp)(char*)​
Correct Answer : Option (C) : pointer to function taking a char* argument and returns an int
Correct Answer : Option (B) : array[6];
Explanation : The array location starts from zero, So it can accessed by array[6].
Correct Answer : Option (C) : 4
Explanation : Size of any type of pointer is 4 bytes in 32-bit platforms.
#include using namespace std; int main() { int a[2][4] = {3, 6, 9, 12, 15, 18, 21, 24}; cout << *(a[1] + 2) << *(*(a + 1) + 2) << 2[1[a]]; return 0; }​
Correct Answer : Option (A) : 21 21 21
Explaination :
a[1][2]
1 * (4)+2
$ g++ point.cpp $ a.out 21 21 21​