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. |
Pick the odd one out |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option A Explanation: Array type is not the basic type and it is constructed using the basic type |
2. |
Find the odd one out: |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option D Explanation: std::vector
|
3. |
Select the right option. |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option C Explanation: Every character constant has an integer value. Also char belongs to the |
4. |
|
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option A Explanation: None |
5. |
What is the output of this program ? #include <iostream> using namespace std; int main () { int a = 5, b = 10 , c = 15 ; int * arr[ ] = { &a, & b, & c }; cout << arr[ 1 ]; return 0 ; }
|
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option D Explanation: Array element cannot be address of auto variable. |
6. |
Can two functions declare variables(non static) with the same name ? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option C Explanation: We can declare variables with the same name in two functions |
7. |
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. |
8. |
In which form does the function call operator can be overloaded ? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option B Explanation: None |
9. |
The declaration of structure is also called as ? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option C Explanation: The structure declaration with open and close braces and |
10. |
How many types are there in increment/decrement operator ? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option B Explanation: There are two types of increment/decrement. They are postfix and prefix. |