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. |
The value 132.54 can represented using which data type ? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option A Explanation: The given value is with decimal points, so float or double can be used. |
2. |
What is the value of the following 8-bit integer after all statements are executed? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option D Explanation: Right shift of signed integers is undefined, and has |
3. |
Which of these expressions will make the rightmost set bit zero in an input integer x? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option B Explanation: None. |
4. |
Which one of the following is not a possible state for a pointer. |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option D Explanation: :A pointer can be in only 3 states a,b and c. |
5. |
Which of the given statements are false ? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option C Explanation: No extern are allowed for class declarations. |
6. |
What is the use of function call operator ? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option B Explanation: None |
7. |
What is the name of the myfile2 file after executing this program ? #include <stdio.h> int main () { int result ; char oldname [] = "myfile2.txt" ; char newname [] = "newname.txt" ; result = rename( oldname, newname ); if ( result == 0 ) puts ( "success" ) ; else perror( "Error" ) ; return 0 ; }
|
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option C Explanation: In this program, We are renaming the myfile2 to newname by using the function rename. |
8. |
The data elements in structure are also known as what ? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option B Explanation: None |
9. |
What is the index number of the last element of an array with 9 elements ? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option B Explanation: Because the first element always starts at 0. So it is on 8 position. |
10. |
Which symbol is used to create multiple inheritance ? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option B Explanation: :For using multiple inheritance, simply specify each base class |