munotes®

BSc CS Sem 2 BSc CS Semester 2 (2021 2022) May 2022 INTRODUCTION TO OOP USING C++ Question Paper - Mumbai University | munotes

BSc CS Semester 2 (2021 2022) Question Paper, May.pdf
SEM 2 · BSc CS Semester 2 (2021-2022) · 1 May 2025

Loading PDF...

Questions asked in this paper

  1. Q1 Attempt the following. 40 marks
    • 1) A methodology which enables a system to be modelled as a set of objects which can be controlled and manipulated in a modular manner
    • 2) Classes are also called as
    • c. built in data type d. referential data type
    • 3) Which is runtime polymorphism?
    • 4) Which of the following we cannot implement in C++?
    • 5) Function calling itself is called as
    • a. iteration b. recursion
    • c. looping d. extraction
    • 6) Which loop always get executed at least once without checking condition?
    • a. for b. while
    • c. do while d. until
    • 7) if getdata() is function of a class test and test *ptr is pointer object then how to call
    • 8) For implementing unary operator overloading method how many parameters are
    • 9) The process of making an operator to exhibit different behaviours in different instances is known as
    • a. instantiation b. operation
    • 10) Which keyword is used for method overriding?
    • a. sealed b. override
    • c. static d. virtual
    • 11) Pure virtual methods are also called as
    • 12) Which symbol is use to protected members
    • 13) What is use following symbo!
    • a. association
    • 16) What will be output of follow:
    • a. reusability b. extensibility
    • c. can create hierarchy of class d. all of the above
    • 18) When member is declared it is accessible within it's own class as well as class immediately derived from it
    • a. public b. private function is used to move get file pointer to a specific location
    • a. seek() b. seekg()
    • 20) What we use to go to end of file on opening?
  2. Q2 A) Attempt the following. (Solve any TWO) {10 Marks]
    • i) What are different applications and benefits of OOP? li) Write a program to define function outside the class lili) Write short note on class diagram
    • iv) What is type conversion? State its type and explain with example
  3. Q3 A) Attempt the following. (Solve any TWO) 10 marks
    • i) What is destructor? How to implement destructors in C++? Write short note on composition
    • iv) How to create array of an object? Implement it with suitable example
  4. Q4 A) Attempt the following. (Solve any TWO) 10 marks
    • i) Explain advantages provided by inheritance and types of inheritance
    • ii) What is generalization and specialization?
    • iii) What is method overriding? Explain with suitable example
    • iv) Describe about open and close method of file handling
  5. Q5 A) Attempt the following. (Solve any ONE) [05
    • i) Explain different data types in C++
    • ii) What is constructor? Explain about types of constructors
    • iii) Draw a class diagram for Library Management System

Read from the scan above, so a character or two may differ. The scan is the original.

Report or request

Something wrong on this page? Report it and we will check it against the scan.

Quick Help

No. The full paper opens straight away, with no login and nothing to pay.

Something wrong with this paper? Report it.

Connected Papers
BSc CS / Sem 2 · 47 papers
Browse all →
Questions? Email contact@munotes.in
Done!
Done!