Question: Chapter 12 Support for Object-Oriented Programming of Concepts of Programming Languages MCQ 35. What type of functions must be included in an abstract class in
Chapter 12 Support for Object-Oriented Programming of Concepts of Programming Languages MCQ
35. What type of functions must be included in an abstract class in C++?
A. Completely defined functions
B. Parametric functions
C. Pure virtual functions
D. Void functions
E. Friend functions
36. In Java, what is the process of implicitly coercing a primitive value into object context called?
A. Boxing
B. Closure
C. Encapsulation
D. Objectifying
E. Subtyping
37. Which is NOT a true statement about the common traits of C++ and Java?
A. Both allow classes to be defined without requiring a parent class
B. Both require a parent class constructor to be called before a child class constructor is called
C. Both support object and non-object data
D. Both support object-oriented programming paradigms
E. Both support single inheritance
39. What keyword in Java ensures a class cannot be derived from to make inherited classes?
A. abstract
B. final
C. finalize
D. ultimate
E. const
F. static
40. What structures in Java provide partial support for multiple inheritance?
A. Categories
B. Classes
C. Closures
D. Interfaces
E. Containers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
