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. |
Which type is best suited to represent the logical values ? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option B Explanation: Logical values can be either true or false, so the boolean type is suited for it. |
2. |
Which of the following statements are false ? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option B Explanation: None |
3. |
How do we represent a wide character of the form wchar_t ? |
||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option A Explanation: A wide character is always indicated by immediately preceding the character |
4. |
What does the following statement mean ? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option C Explanation: None |
5. |
What is the output of this program ? #include <iostream> using namespace std; int main () { char * ptr; char Str [] = "abcdefg" ; ptr = Str ; ptr + = 5 ; cout << ptr; return 0 ; }
|
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option A Explanation: Pointer ptr points to string ‘fg’. So it prints fg. |
6. |
Which will be used with physical devices to interact from C++ program ? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option C Explanation: C++ library uses streams to operate with physical devices such as Keyboards, Printers, |
7. |
Pick out the correct statement. |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option A Explanation: none |
8. |
Pick out the correct statement |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option A Explanation: Because preincrement take one byte instruction & |
9. |
Which of the following is a properly defined structure ? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option D Explanation: The a_struct is declared as structure name and its data element is a. |
10. |
What is the output of this program ?
|
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option B Explanation: The values will be preincemented and predecremented, So it will print as 64. |