41 Computer Science MQP 2
41 Computer Science MQP 2
41 Computer Science MQP 2
void main( )
{
box b;
}
(a) Error due to semicolon missing after class definition
(b) Error due to semicolon missing at the data member declaration line
(c) Error due to missing public access specifier
(d) Error due to missing protected access specifier
6. Which of the following statements are correct with respect to function overloading?
i) Functions name are same
ii) Number of arguments are same
iii) Number of arguments are different
iv) Data types of arguments are different
(a) i) and ii) are correct (b) i), ii) and iii) are correct
(c) i), iii) and iv) are correct (d) ii) and iv) are correct
9. Which one of the following is unsupported C++ expression with respect to pointer ptr ?
(a) ptr + 80 (b) ptr++ (c) ptr - 100 (d) ptr * 100;
II Fill in the blanks choosing the appropriate word/words from those given in the brackets.
(Diamond, Information, Oracle, Graph, Foreign, Tree )
PART-C
IV Answer any FOUR questions. Each question carries THREE marks: 4 x 3 = 12
PART-D
V Answer any FOUR questions, each question carries FIVE marks: 4 x 5 = 20
42. Given the Boolean function F(A,B,C, D) =∑(0,1,3,4,5,7,12,13,15), Reduce it using K-map.
43. Define a class named rectangle with following criteria
1) Data members : length, breadth
2) Member functions: input() and output()
3) Define member functions outside the class to input and output length and breadth of
a rectangle
44. Using given SQL table write the appropriate SQL query
PART-E
3. What is the output of the two input AND gate for the inputs X = 1 and Y =1 ?
*************