Instruction
- Total number of questions : 10.
- Time alloted : 10 minutes.
- Each question carry 1 mark.
- No Negative marks
- DO NOT refresh the page.
- All the best :-).
1. |
What is the size of wchar_t in C++ ? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option D Explanation: Compiler wants to make CPU as more efficient in accessing the next value. |
2. |
Is bool a fundamental datatype in C++ ? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option A Explanation: C++ has bool as a fundamental data type. |
3. |
How many characters are specified in the ASCII scheme ? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option B Explanation: None |
4. |
0946, 786427373824, ‘x’ and 0X2f are _____, _____, ____ and _____ literals respectively |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option D Explanation: Literal integer constants that begin with 0x or 0X are interpreted as |
5. |
What will happen in this code? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option B Explanation: Assigning to refrence changes the object to which the refrence is bound. |
6. |
What is the output of this program ? #include <iostream> using namespace std; int g = 100; int main () { int a; { int b; b = 20 ; a = 35 ; g = 65 ; cout << b << a << g ; } a = 50 ; cout << a << g ; return 0 ; }
|
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option A Explanation: The local values of a and g within the block are more dominant than the global values. |
7. |
What will happen when the function call operator is overloaded ? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option D Explanation: It will modify how the operator is to be interpreted |
8. |
What is the output of this program ?
} |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option C Explanation: We are passing the values by reference and modified the data on the function block. |
9. |
What will happen when the structure is declared ? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option A Explanation: While the structure is declared, it will not be initialized, |
10. |
Which operator works only with integer variables ? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option C Explanation: None |