NES SCIENCE COLLEGE,Nanded
COMPUTER SCIENCE
Unit test -1st
Class: B.sc II yr Sub: oop’s with c++
Time: 1 hr marks: 30mks
Q1. Solve following MCQ’s. 10mks
1) In c++, cout and cin are ------------- .
a) Objects b) operators c) statements d) none.
2) Objects are basic ------------- entities in object oriented system.
a) Compile-time b) run-time c) both d)function-time
3) The operator << used with cout is called as ---------- operator .
a) Arithmetic b) insertion c) extraction d) less than
4) Class is a collection of data members and ------------------ .
a) Variables b) operators c) member functions d) data
5) ------------- operator is used to allocate memory dynamically(at runtime).
a) New b) delete c) endl d) scope resolution(::)
6) Object oriented programming follows ------------ approach.
a) Top-down b) Bottom-up c) both d) none.
7) endl operator is used for --------------.
a) Specifying width b)inserting new line c)declaring variable d) none
8) In c++ , By default the main () function’s return type is --------.
a) Void b) float c) int d) char
9) Class is a --------------- data type.
a) User-defined b) derived c) built-in d) all of above
10) The operator >> used with cin is called as --------------- operator.
a) Extraction b)insertion c) greater than d)none .
Q.2 Solve any two of the following. 10mks
1. Write the difference between procedure oriented and object oriented programming.
2. Explain any 4 basic concepts of object orientd programming.
3. Explain structure of c++ program.
Q.3 Solve any two of the following. 10mks
1. Explain benefits of object oriented programming.
2. Explain scope resolution operator(::).
3. Explain a simple c++program.