A. long
B. double
C. stack ---right
A. 110012 ---right
B. 1010110
C. 0010 0101
5. Which of the following operations is better performed by an array than a linked list?
A. A class with one or more pure virtual member functions --- right ans
B. A class which is used as a template for other classes
C. A class in which all of the member functions are virtual
12. Which of the following is not a- keyword associated with exception processing?
A. catch
B. throw
C. switch --- right ans
13. Which of the following is not an advantage of throwing an exception compared to returning an error?
A. The exception allows a function to indicate that an error has occurred --- right ans
B. All exceptions insure that an error is handled
C. Exception handling can be moved outside of the normal execution flow
14. While of the following prototype functions would be called in the expression 'int n = fun(11.0, "char")?
a. polymorphism
b. persistence --- right ans
c. inheritance
16. Which programming style employs an abstraction type called classes and objects?
a. procedure-oriented
b. logic-oriented
c. object-oriented --- right ans
17. ________ allows a single name/operator to be associated with different operations depending on the type of data
passed to
18. ____________ is an atternative to class inheritance and is a way of making object composition as powerful as
inheritance
a. genericity
b. delegation --- right ans
c. multiple inheritance
a. object
b. class --- right ans
c. function
a. classes
b. inheritance --- right ans
c. encapsulation
24. C++ supports a mechanism to access a global variable using the 'scope resolution operator'
25. The syntax of data type casting in C and C++ is the same
a. True
b. false --- right ans