2PU_CS_QP
2PU_CS_QP
5. Identify the reason for the error in the following program segment
class temp
{
private : int x;
}
void main( )
{
temp t;
cout<<"enter the value of X”;
cin>> tx;
6. Assertion (A) : Very efficient code can be generated using inline function.
Reason (R) : Inline function has complex data structure.
(a) Both A and Rare false (b) A is true and R is false
(c) A is false and R is true (d) Both A and Rare true
13. Examine the following C++ program segment, identify the error
class example
{
private : int x;
}
void main( )
{
example p;
}
16. if a class is derived from more than one base class then it is called as
a) Single level inheritance (b) Hierarchical Inheritance
(c) Multiple Inheritance (d) Multilevel Inheritance
17. Which one of the following transfers eight bits of data at a time?
(a) Serial port (b) Parallel port (c) PS/2 (d) USB
22. Which of the following statements are correct with respect to function overloading
i) Functions name are sane
ii) Number of arguments are carne
iii) Number of arguments are different
iv) Data types of arguments are different
(a) i) and ii) are correct (b) i), ii) and are iii)current
(c) i), iii) and iv) are correct (d) ii) and iv) are correct
PART-B
PART-C
IV Answer the following questions. Each question carries THREE marks: 4x3=12
1. Explain the characteristics of motherboard.
2. What is non-primitive data structure? Give any two examples.
3. What is UPS? Explain its types.
4. Write the memory representation of row-major matrix elements.
5. What is dynamic memory allocation? Mention the operators used to allocate and deallocate
memory space dynamically.
6. Explain any three file opening modes in data file handling.
7. White a note on Cache memory
8. What is primitive data structure? Explain any two operations on primitive data structure.
9. Write the logic symbol and truth table of OR gate.
10. what are the applications of stack data structure?
11. Give any three features of USB port
PART-D
V Answer the following questions, each question carries FIVE marks: 4x5=20
PART-E
Answer the following questions, each question carries FIVE marks 2*3-10