1) In which of the following mechanisms, types of all variables and expressions are fixed at compilation time.
Ans: Static Binding/ early binding
2) What is a copy constructor?
Ans: A constructor to initialize an object with the values of another object
3) Why constructors are efficient instead of a function init() defined by the user to initialize the data members of an object?
Ans: All of the mentioned
4) The process of compartmentalizing the elements of an abstraction that constitute its structure and behavior is called as
Ans: Encapsulation
5) What is Inheritance in C++?
Ans: Deriving new classes from existing classes
6) What is the index number of the last element of an array with 9 elements?
Ans: 8
7) Which among the following best describes polymorphism?
Ans: It is the ability for many messages/data to be processed in one way
8) Which among the following best describes polymorphism?
Ans: It is the ability for a message/data to be processed in more than one form
9) What will you use if you are not intended to get a return value?
Ans: Void
10) What happens if a user forgets to define a constructor inside a class?
Ans: Compiler provides a default constructor to avoid faults/errors
11) Which among the following can’t be used for polymorphism?
Ans: Static member functions
12) Which of the following is the default return value of functions in C++?
Ans: int
13) Which of the following is important in a function?
Ans: Both return type and function name
14) An operation can be described as?
Ans: Object & Class behavior
15) executes must frequently and makes the fine grained decision of which process to execute the next.
Ans: Short-term scheduling
16) Which of the following accesses the seventh element stored in array?
Ans: array[6];
17) What among the following statement is true?
Ans: All of the mentioned
18) How many parameters does a default constructor require?
Ans: 0
19) What is the role of a constructor in classes?
Ans: To initialize the data members of an object when it is created
20) Which of the following diagram is not supported by UML considering Data-driven modeling?
Ans: Data Flow Diagram (DFD)
21) What is multiplicity for an association?
Ans: The multiplicity at the target class end of an association is the number of instances that can be associated with a single instance of source class
22) The essential characteristics of an object that distinguish it from all other kinds of objects and thus provide crisply defined conceptual boundaries, relative to the perspective of the viewer is called:
Ans: Abstraction
23) What is the programming style of the object oriented conceptual model?
Ans: Classes and objects
24) Which type of function among the following shows polymorphism?
Ans: Virtual function
25) Which among these are the rules to be considered to form Class diagrams?
Ans: Class symbols must have at least a name compartment