Exam Details
Subject | object oriented programming using c++ | |
Paper | ||
Exam / Course | m.sc. computer science | |
Department | ||
Organization | solapur university | |
Position | ||
Exam Date | April, 2018 | |
City, State | maharashtra, solapur |
Question Paper
M.Sc. (Semester (CBCS) Examination Mar/Apr-2018
Computer Science
OBJECT ORIENTED PROGRAMMING USING
Time: 2½ Hours
Max. Marks: 70
Instructions: 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
What does your class can hold?
data
functions
both a b
none of the these
Where does the execution of the program starts?
user-defined function
main function
void function
none of these
A is a collection of objects of similar type.
class
inheritance
operator
object
The operator is known operator.
extraction
bit-wise
increment
insertion
The header file should be included at the beginning of all programs that use input/output statements.
graphics.h
iostream.h
manip.h
math.h
What does inheritance allows you to do?
create hierarchy of classes
create a class
access method
none of these
Which of the following cannot be friend?
function
class
object
operator function
Which of the following concepts means wrapping up of data and functions together?
Abstraction
Encapsulation
Inheritance
Polymorphism
What is the default visibility mode for members of classes in
Private
Public
Protected
Depends
10) How we can define member function outside the class?
using union
using structure
using pointers
using scope resolution
Page 2 of 2
SLR-UG-267
State following statements are True or False
04
The virtual function must be members of some class.
We cannot overload operator.
A derived class with only one base class is called single inheritance
Constructor should be declared in the public section.
Q.2
A)Write short notes on the following
08
Function prototyping
Static member function
Answer the following
06
What is Flowchart? Explain the use of basic symbols used in flowchart
What is Class? Explain the difference between class and structure.
Q.3
Answer the following
14
Explain the concept of call by reference and return by reference with suitable example.
b)Write a program to create a class to read time in seconds and convert into time in format.
Q.4
Answer the following
14
a)What is constructor? Explain the use of multiple constructors in a class with example
b)Write a program print the Diagonal of matrix of order 3 x 3.
Q.5
Answer the following.
14
a)What is function overloading? Explain the procedure of function overloading with syntax and suitable example.
b)What is inheritance? Explain Multilevel inheritance with suitable example.
Q.6
Answer the following.
14
a)What is virtual Function? Explain the rules for virtual functions.
b)Write a program to implement operator using operator overloading concept.
Q.7
Answer the following.
14
a)What is manipulator? Explain precision() and fill() with suitable example.
b)What is file? Explain the different types of modes of file with syntax and example.
Computer Science
OBJECT ORIENTED PROGRAMMING USING
Time: 2½ Hours
Max. Marks: 70
Instructions: 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
What does your class can hold?
data
functions
both a b
none of the these
Where does the execution of the program starts?
user-defined function
main function
void function
none of these
A is a collection of objects of similar type.
class
inheritance
operator
object
The operator is known operator.
extraction
bit-wise
increment
insertion
The header file should be included at the beginning of all programs that use input/output statements.
graphics.h
iostream.h
manip.h
math.h
What does inheritance allows you to do?
create hierarchy of classes
create a class
access method
none of these
Which of the following cannot be friend?
function
class
object
operator function
Which of the following concepts means wrapping up of data and functions together?
Abstraction
Encapsulation
Inheritance
Polymorphism
What is the default visibility mode for members of classes in
Private
Public
Protected
Depends
10) How we can define member function outside the class?
using union
using structure
using pointers
using scope resolution
Page 2 of 2
SLR-UG-267
State following statements are True or False
04
The virtual function must be members of some class.
We cannot overload operator.
A derived class with only one base class is called single inheritance
Constructor should be declared in the public section.
Q.2
A)Write short notes on the following
08
Function prototyping
Static member function
Answer the following
06
What is Flowchart? Explain the use of basic symbols used in flowchart
What is Class? Explain the difference between class and structure.
Q.3
Answer the following
14
Explain the concept of call by reference and return by reference with suitable example.
b)Write a program to create a class to read time in seconds and convert into time in format.
Q.4
Answer the following
14
a)What is constructor? Explain the use of multiple constructors in a class with example
b)Write a program print the Diagonal of matrix of order 3 x 3.
Q.5
Answer the following.
14
a)What is function overloading? Explain the procedure of function overloading with syntax and suitable example.
b)What is inheritance? Explain Multilevel inheritance with suitable example.
Q.6
Answer the following.
14
a)What is virtual Function? Explain the rules for virtual functions.
b)Write a program to implement operator using operator overloading concept.
Q.7
Answer the following.
14
a)What is manipulator? Explain precision() and fill() with suitable example.
b)What is file? Explain the different types of modes of file with syntax and example.
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