AMCAT COMPUTER PROGRAMMMING PREVIOUS QUESTIONS (PAPERS)-5

Question 1
Which of the following concepts of OOPS means exposing only necessary information to client?
A. Abstraction
B. Encapsulation
C. Data hiding
D. Data binding

Correct Op: D

Question 2
Which of the following cannot be inherited?
A. Friend
B. Static
C. Destructor

Correct Op: B

Question 3
Which of the following are available only in the class hierarchy chain?
A. Public data members
B. Private data members
C. Protected data members
D. Member functions

Correct Op: C

Question 4
Tarun wants to write code for his computer class homework but he had misheard the teacher and only can recollect remembering this 4 words. Which of the following is what he couldn’t have had heard?
A. Distributive
B. Multilevel
C. Multiple
D. Hierarchical

Correct Op: A

Question 5
Tarun works all night long writing code and writing more and more classes for each object he now thinks that he can write a superclass which defines some hierarchical feature for other classes, what can he use?
A. Cascading
B. Hierachical Super Positioning
C. Inheritance
D. Polymorphism

Correct Op: C

Question 6
Palak enters a coding competition she wants to write code to pass down values from one class to another?
A. Inherits
B. extends
C. Construct
D. all of the mentioned

Correct Op: B

Question 7
How will a class protect the code inside it?
A. Using Access specifiers
B. Abstraction
C. Use of Inheritance
D. All of the mentioned

Correct Op: A
Each method or variable in a class may be marked ‘public’ or ‘private’. They are called Access Specifiers.

Question 8
Which type of inheritance needs a virtual function:
A. Multi level inheritance
B. Multiple inheritance
C. Hybrid inheritance
D. All the above

Correct Op: D