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. |
Identify the user-defined types from the following ? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option C Explanation: They must be defined by the users before use unlike the other types which are |
2. |
For what values of the expression is an if-statement block not executed ? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option C Explanation: The if-statement block is only not executed when the expression evaluates to 0. It’s just syntactic sugar for a |
3. |
What is the output of this program ? #include <stdio.h> int main() { char a = '\012 ';
printf ("%d" , a ); return 0; }
|
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option C Explanation: The value ‘\012’ means the character with value 12 in octal, which is decimal 10. |
4. |
The operator used for dereferencing or indirection is ____ |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option A Explanation: None |
5. |
Choose the correct option. |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option D Explanation: The keyword extern is not a definition and is not allocated storage until it is initialized. |
6. |
Identify the incorrect statements. |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option C Explanation: In statement 1 lvalue is required as unary ‘&’ operand |
7. |
How many streams are automatically created when executing a program ? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option C Explanation: There are streams that are automatically created when executing a program. |
8. |
What will happen when the function call operator is overloaded ? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option D Explanation: It will modify the operator to be interpreted. |
9. |
Which of the following accesses a variable in structure *b ? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option A Explanation: Because in a structure pointer, the data element is declared as above only. |
10. |
Which concepts does the preincrement uses ? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option B Explanation: none |