Shivaji University Kolhapur M.Sc Semester-I Computer Science Paper March 2019
Which of the following statements are valid array declaration?
(a) Int number(5);
(b) Float average [5];
(c) double [5] marks;
(d) counter int[5];
In C++ a function contains in class called as _____
(a) a method
(b) a member function
(c) a class function
(d) None of these
Which of the following are not keywords?
(a) Null
(b) Abstract
(c) Protected
(d) Both a and b
Templates enables us to create a range of related _____
(a) classes
(b) Variables
(c) Arrays
(d) Both a and c
The operator that can not be overloaded is ____
(a) ++
(b) ::
(c) ()
(d) None of these
Mechanism of deriving a class from another derived class is known as ____
(a) Polymorphism
(b) Single inheritance
(c) Multi-level inheritance
(d) Message passing
Which of the following header file includes definition of cin and cout?
(a) istream.h
(b) ostream.h
(c) iomanip.h
(d) iostream.h
Which of the following statements are ture in C++?
(a) Classes can, not have data as public members
(b) Structures can, not have functions as members
(c) Class members are public by default
(d) None of these
When a function is defined inside a class, this function is called _____
(a) Inside function
(b) Class function
(c) Inline function
(d) Interior function
Which of the following keywords are used to control access to a class member?
(a) Default
(b) Break
(c) Protected
(d) Goto
Though _____, we can eliminate redundant code and extend the use of existing classes.
(a) Encapsulation
(b) Polymorphism
(c) Inheritance
(d) Overloading
A derived class with one base class is called ____ inheritance.
(a) Single
(b) Multiple
(c) Multilevel
(d) Hierarchical
THe ____ can, not be directly used to access all the members of the derived class.
(a) Void pointers
(b) Null pointers
(c) This pointers
(d) Base pointers
C++ supports run time polymorphism with the help of virtual functions, which is called ____ binding.
(a) Dynamic
(b) Runtime
(c) Early binding
(d) Static
Leave a Reply