Computer Science Midterm Exam Question Paper Eng Version 2019-20 Mandya
Computer Science Midterm Exam Question Paper Eng Version 2019-20 Mandya
Part'A
l. Answer alt the questions. Each question carries I mark. 1x10=10
1. Expand SMPS.
2. Write the logic symbolof XNOR gate.
3. What is meant by plug and play device?
4. Name any one primitive data structure in C++?
5. Wlat is a linked list?
6. Define a class.
7. Which access specifier is implicitly used in a class?
. 8. What is inheritance? .oY
9. How do you get the address of variable in C++?
10. What is the purpose of this'pointer in C++?
Part-B
ll. Answer any 5 questions. Each question carries 2 marks. 2x5=10
11. State and prove Complementary law.
12. P.T. XY+XY=X.
13. What is the significance of classes in OOP?
14. Mention any two applications of OOPs.
15. Mention any two features of Parameterized constructor.
16. Write the syntax and example of copy constructor.
17. What is a stream? Name the streams generally used for file llO.
18. Write the member functions belonging to ofstream class.
Part-C
lll. Answer any 5 questions. Each question carries 3 marks. 3x5=1 5
19. Explaindifferenttypes of RAM.
20. Explain cache memory.
21. Realize AND, OR, NOT gates using NAND gates.
22. Draw the logic diagram for Y = AB + B'C + CA'.
23. Explain the memory representation of Queue using one dimensional array.
24. Mention the various operations performed on linear data structure.
X. Write the differences between static and dynamic memory allocation.
# Mention the methods of opening a file within C++ program. Discuss.
Part-D
lV, Angwer any 7 questions. Each question carries 5 marks. 7r5=35
27 .
Reduce the following expression using K-map F(A,B,C,D)= E(0,1,3,5,6,7,10,14,15)
28. Write an algorithm to insert an element at the rear end of the queue.
29. Explain the operations performed on stack.
30. Write the differences between Proceduraland Object oriented programming language.
31. Explain theradvantages and disadvantages of OOP.
32. Explain the member function inside the class with an example.
' 33. Explain how objects of a class can be defined.
U. Explain inline function with syntax and an example.
35. Explain the characteristics of function overloading.
36. What is a constructor? Explain the rules of writing a constructor function.
37. What are the advantages of inheritance?