Exam Details
Subject | oop using c++ – ii | |
Paper | ||
Exam / Course | b.sc. – i (ecs) | |
Department | ||
Organization | solapur university | |
Position | ||
Exam Date | December, 2018 | |
City, State | maharashtra, solapur |
Question Paper
B.Sc. II (Semester IV) (Old CGPA) Examination, 2018
Paper II oop using II
Day and Date Saturday, 8-12-2018 Total Marks 70
Time 10.30 a.m. to 1.00 p.m.
N.B. All questions are compulsory.
Figures to the right indicates full marks.
1. Select the correct alternatives 14
Where does a cin stops it extraction of data
By seeing a blankspace By seeing
Both a and b None of the mentioned
When a base class is privately inherited by the derived class,then
Protected members of the base class become private members of
derived class
Public members of the base class become private members of derived
class
Both a and b
Only b
Where does the abstract class is used
Base class only Derived class
Both a and b None of the mentioned
Class class Y and class Z are derived from class BASE. This is
inheritance.
Multiple Multilevel
Hierarchical Single
What is meant by ofstream in
Writes to a file Reads from a file
Both a and b None of the mentioned
Which of the followings are true about Virtual functions
They must be non-static member function of the class
They cannot be friends
Constructor functions cannot be virtual
All of these
Which function return the current position of the get or put pointer in bytes
tellg() tellp()
tell() Both a and b
In case of inheritance where both base and derived class are having
constructor and destructor, then which if the following are true
Constructors are executed in their order of derivation
Constructors are executed in reverse order of derivation
Destructors are executed in their order of derivation
Destructors are executed in reverse order of derivation
Only 4 Only 3
Only 4 Only 3
What is meant by multiple inheritance
Deriving a base class from derived class
Deriving a derived class from base class
Deriving a derived class from more than one base class
None of the mentioned
10) Predict the output
int x 786;
cout
11) Reusability of the code can be achieved in CPP through
Polymorphism Encapsulation
Inheritance Both a and c
12) How many parameters are there in getline function
1 2 3 4
13) During a class inheritance in CPP, if the visibility mode or mode of derivation
is not provided, then by default visibility mode is
Public Protected
Private Friend
14) header file is used for manipulators.
<iomanipulator.h> stdiomanip.h>
<stdmanip.h> <iomanip.h>
2. Answer the following (any 14
When should a program throw an exception
What is an abstract class
How runtime polymorphism is achieved in
State the different stream classes for console operation.
What is the use of precision() function in format console operation
What is an exception
State the difference between seekg() and seekp().
What is the use of getline function
3. Answer any two of the following 10
Discuss the various forms of function supported by the input stream.
How are they used
What is Manipulator List out any four manipulators with their use.
What are the advantages of using exception handling mechanism in a
program
What is containership How it is differ from inheritance 4
4. Answer any two of the following 14
Write a program that demonstrates the use of pure virtual function.
When do we use multiple catch block Explain with example
What are the different forms of inheritance Give an example for each.
5. Answer any two of the following 14
Explain with example, how you would create space for an array of objects
using pointer
Write a program that copies content of one file into another file.
What is file mode Describe the various file mode options available.
Paper II oop using II
Day and Date Saturday, 8-12-2018 Total Marks 70
Time 10.30 a.m. to 1.00 p.m.
N.B. All questions are compulsory.
Figures to the right indicates full marks.
1. Select the correct alternatives 14
Where does a cin stops it extraction of data
By seeing a blankspace By seeing
Both a and b None of the mentioned
When a base class is privately inherited by the derived class,then
Protected members of the base class become private members of
derived class
Public members of the base class become private members of derived
class
Both a and b
Only b
Where does the abstract class is used
Base class only Derived class
Both a and b None of the mentioned
Class class Y and class Z are derived from class BASE. This is
inheritance.
Multiple Multilevel
Hierarchical Single
What is meant by ofstream in
Writes to a file Reads from a file
Both a and b None of the mentioned
Which of the followings are true about Virtual functions
They must be non-static member function of the class
They cannot be friends
Constructor functions cannot be virtual
All of these
Which function return the current position of the get or put pointer in bytes
tellg() tellp()
tell() Both a and b
In case of inheritance where both base and derived class are having
constructor and destructor, then which if the following are true
Constructors are executed in their order of derivation
Constructors are executed in reverse order of derivation
Destructors are executed in their order of derivation
Destructors are executed in reverse order of derivation
Only 4 Only 3
Only 4 Only 3
What is meant by multiple inheritance
Deriving a base class from derived class
Deriving a derived class from base class
Deriving a derived class from more than one base class
None of the mentioned
10) Predict the output
int x 786;
cout
11) Reusability of the code can be achieved in CPP through
Polymorphism Encapsulation
Inheritance Both a and c
12) How many parameters are there in getline function
1 2 3 4
13) During a class inheritance in CPP, if the visibility mode or mode of derivation
is not provided, then by default visibility mode is
Public Protected
Private Friend
14) header file is used for manipulators.
<iomanipulator.h> stdiomanip.h>
<stdmanip.h> <iomanip.h>
2. Answer the following (any 14
When should a program throw an exception
What is an abstract class
How runtime polymorphism is achieved in
State the different stream classes for console operation.
What is the use of precision() function in format console operation
What is an exception
State the difference between seekg() and seekp().
What is the use of getline function
3. Answer any two of the following 10
Discuss the various forms of function supported by the input stream.
How are they used
What is Manipulator List out any four manipulators with their use.
What are the advantages of using exception handling mechanism in a
program
What is containership How it is differ from inheritance 4
4. Answer any two of the following 14
Write a program that demonstrates the use of pure virtual function.
When do we use multiple catch block Explain with example
What are the different forms of inheritance Give an example for each.
5. Answer any two of the following 14
Explain with example, how you would create space for an array of objects
using pointer
Write a program that copies content of one file into another file.
What is file mode Describe the various file mode options available.
Other Question Papers
Subjects
- advanced java (paper – iii)
- advanced microprocessor
- compiler construction (paper – iv)
- computer graphics
- core java (old cgpa) (paper – iii)
- data communication and networking – i
- data communication and networking – ii (paper – i)
- data communications and networking – i (paper – i)
- data structures (paper – iv)
- data structures algorithms enginering – ii
- database management system – i (paper – ii)
- database management system – ii (paper – ii)
- dbms using oracle
- descriptive statistics – i
- descriptive statistics – ii
- digital electronics – i
- digital electronics and microprocesor – ii
- discrete structure
- embedded system – i
- embedded system – ii (paper – v)
- english (compulsory) (new) (cbcs)
- fundamental of computer
- golden petals
- introduction to programming using c – ii (paper – iii)
- introduction to web designing (paper – ii)
- linear electronics – i
- linear electronics – ii
- linux operating system (new)
- literary quest
- mathematical algebra
- mathematics(numerical methods)
- microprocesor – ii
- object oriented programming using c++
- object oriented programming using java (paper – i)
- on track – english skills for success
- oop using c++ – ii
- operating system
- operating system – ii (paper – i)
- operations research
- organization of pc – ii
- peripherals and interfacing – ii
- pr obabili ty theory – ii
- probability theory – i (paper – ix)
- programming using “c”
- python – i (paper – v)
- software engineering
- software enginering – ii
- theory of computer science
- theory of computer science (paper – iv)
- visual programming – i
- visual programming and aplication software – i (old)
- visual programming and aplication software – ii(paper – vi)
- web technology and e-commerce – i
- web technology and e-commerce – i (paper – v)
- web technology and e-commerce – ii (paper – v)