Exam Details
Subject | object oriented programming using c++ | |
Paper | ||
Exam / Course | m.sc. computer science | |
Department | ||
Organization | solapur university | |
Position | ||
Exam Date | April, 2017 | |
City, State | maharashtra, solapur |
Question Paper
M.Sc. (Computer Science) (Semester (CBCS) Examination, 2017
OBJECT ORIENTED PROGRAMMING USING
Day Date: Tuesday, 18-04-2017 Marks: 70
Time: 10.30 AM to 01.00 PM
N.B. Question no. 1 and 2 are compulsory.
Attempt any 3 questions from Q. no. 3 to Q. no. 7
Figures to the right indicate full marks.
Q.1 Choose correct alternatives. 10
Which of the following type of class allows only one object of it to
be created?
Virtual Class Abstract class
Singleton class Friend class
Which of the following is not a type of constructor?
Copy constructor Friend constructor
Default constructor Parameterized constructor
Which of the following cannot be friend?
Function Class Object Operator function
Which of the following concepts provides facility of using object
of one class inside another class?
Encapsulation Abstraction
Composition Inheritance
Which of the following approach is adapted by
Top-down Bottom-up Right-left Left-right
Which of the following concepts means wrapping up of data and
functions together?
Abstraction Encapsulation
Inheritance Polymorphism
How "Late binding" is implemented in
Using tables Using Virtual tables
Using Indexed virtual tables Using polymorphic tables
Which of the following problem causes an exception?
Missing semicolon in statement in main
A problem in calling function.
A syntax error.
A run-time error.
Which of the following is not a type of inheritance?
Multiple Multilevel Distributive Hierarchical
Page 1 of 2
SLR- RG 324
10) Which of the following operators cannot be overloaded?
State True or False. 04
A program is identical to a C program with minor changes in
coding.
Templates create different versions of a function at runtime.
A Protected member of a base class cannot be accessed from a
member function of the derived class.
Data members of a class cannot be initialized in the class
definition.
Q.2 Write short notes of the following. 08
Function Template
Input Output stream.
Explain the following terms? 06
fail() and bad().
Default argument.
Q.3 Answer the following.
Write an object oriented program in that print the factorial of
given number.
07
Define polymorphism. How polymorphism is achieved at compile
time and run time?
07
Q.4 Answer the following.
Write an object oriented program in To read a set of numbers
and store it as an one dimensional array and find out largest and
smallest numbers.
07
When do we declare a member of a class as static? Why it is
necessary?
07
Q.5 Answer the following.
What are manipulators? Explain with examples endl and setw
manipulators.
07
What is Constructor function? What are the special characteristics of
constructor function?
07
Q.6 Answer the following.
What is meant by inheritance? Explain single inheritance with
Examples. 07
What is exception handler? What are the keywords used to handle
an exception in
07
Q.7 Answer the following.
Write a program to show how the binary operator is overloaded
using friend function.
07
What is difference between procedure oriented programming and
object oriented programming.
OBJECT ORIENTED PROGRAMMING USING
Day Date: Tuesday, 18-04-2017 Marks: 70
Time: 10.30 AM to 01.00 PM
N.B. Question no. 1 and 2 are compulsory.
Attempt any 3 questions from Q. no. 3 to Q. no. 7
Figures to the right indicate full marks.
Q.1 Choose correct alternatives. 10
Which of the following type of class allows only one object of it to
be created?
Virtual Class Abstract class
Singleton class Friend class
Which of the following is not a type of constructor?
Copy constructor Friend constructor
Default constructor Parameterized constructor
Which of the following cannot be friend?
Function Class Object Operator function
Which of the following concepts provides facility of using object
of one class inside another class?
Encapsulation Abstraction
Composition Inheritance
Which of the following approach is adapted by
Top-down Bottom-up Right-left Left-right
Which of the following concepts means wrapping up of data and
functions together?
Abstraction Encapsulation
Inheritance Polymorphism
How "Late binding" is implemented in
Using tables Using Virtual tables
Using Indexed virtual tables Using polymorphic tables
Which of the following problem causes an exception?
Missing semicolon in statement in main
A problem in calling function.
A syntax error.
A run-time error.
Which of the following is not a type of inheritance?
Multiple Multilevel Distributive Hierarchical
Page 1 of 2
SLR- RG 324
10) Which of the following operators cannot be overloaded?
State True or False. 04
A program is identical to a C program with minor changes in
coding.
Templates create different versions of a function at runtime.
A Protected member of a base class cannot be accessed from a
member function of the derived class.
Data members of a class cannot be initialized in the class
definition.
Q.2 Write short notes of the following. 08
Function Template
Input Output stream.
Explain the following terms? 06
fail() and bad().
Default argument.
Q.3 Answer the following.
Write an object oriented program in that print the factorial of
given number.
07
Define polymorphism. How polymorphism is achieved at compile
time and run time?
07
Q.4 Answer the following.
Write an object oriented program in To read a set of numbers
and store it as an one dimensional array and find out largest and
smallest numbers.
07
When do we declare a member of a class as static? Why it is
necessary?
07
Q.5 Answer the following.
What are manipulators? Explain with examples endl and setw
manipulators.
07
What is Constructor function? What are the special characteristics of
constructor function?
07
Q.6 Answer the following.
What is meant by inheritance? Explain single inheritance with
Examples. 07
What is exception handler? What are the keywords used to handle
an exception in
07
Q.7 Answer the following.
Write a program to show how the binary operator is overloaded
using friend function.
07
What is difference between procedure oriented programming and
object oriented programming.
Other Question Papers
Subjects
- .net technology
- artifical intelligence
- computer communication network
- data mining and warehouse
- data structures
- dbms
- digital image processing
- distributed operating system
- finite automata
- internet of things
- java programming
- linux operating system (oet)
- mobile computing
- network security
- numerical analysis
- object oriented programming using c++
- office automation (oet)
- operating system
- operations research
- soft computing
- software engineering
- software testing
- uml