Class 10 Pre test
Class 10 Pre test
Name : ........................................................................
3.The wrapping of data and its related fuctionality into a single entity is known as.
4. If the data members are private , what can we do to access them from the class object.
d. Private data members can never be accessed from outside of the class.
c. Extendibility d. Portability
a. + b. :: c. * d. /
Subject: Data Structure & OOP in C++ F.M:50 Subject: Data Structure & OOP in C++ F.M:50
Class: Ten Time: 2 hours P.M:20 Class: Ten Time: 2 hours P.M:20
Group 'B' Short Questions ( 5 x 5 =25 marks) Group 'B' Short Questions ( 5 x 5 =25 marks)
Attempt any five questions. Attempt any five questions.
10. Define base class and derived class. Explain with an example.(2+3) 10. Define base class and derived class. Explain with an example.(2+3)
11. Write any five differences between POP and OOP approach.(5) 11. Write any five differences between POP and OOP approach.(5)
12. Define constructor with an example.(2+3) 12. Define constructor with an example.(2+3)
13. What is friend function? Why do we use friend function in C++ ? 13. What is friend function? Why do we use friend function in C++ ?
Explain with an example.(1+1+3) Explain with an example.(1+1+3)
14. Write short notes on encapsulation and polymorphism.(2.5+2.5) 14. Write short notes on encapsulation and polymorphism.(2.5+2.5)
15. Define abstraction. Write a program to illustrate the concept of 15. Define abstraction. Write a program to illustrate the concept of
abstraction. (2+3) abstraction. (2+3)
Group 'C' Long Questions ( 8 x 2 =16 marks) Group 'C' Long Questions ( 8 x 2 =16 marks)
Attempt any two questions. Attempt any two questions.
16. How can you acheive compile time polymorphism? Write a 16. How can you acheive compile time polymorphism? Write a
program in C++ to illustrate the concept of multiple inheritance. (4 +4) program in C++ to illustrate the concept of multiple inheritance. (4 +4)
17. What is data structure? Describe about Stack ,Graph and Queue. 17. What is data structure?Describe about Stack ,Graph and Queue.
Explain three types of looping statements. (2+3+3) Explain three types of looping statements. (2+3+3)
18. Explain switch case statement with its syntax and a suitable 18. Explain switch case statement with its syntax and a suitable
example. (4+4) example. (4+4)
Best of Luck Best of Luck