search
Log In
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
0 votes
341 views

Match the following :

(a) Garbage collection in 1. Java
(b) Nameless object 2. generic programming
(c) Template support 3. defines a class
(d) A forward reference 4. member function
(e) Derived class inherits from base class 5. within a statement

 

$\begin{array}{|l|l|l|l|} \hline & \textbf{List-1} && \textbf{List-2} \\\hline \text{(a)}& \text{Garbage collection in} & \text{1.} & \text{Java} \\\hline \text{(b)}& \text{Nameless Object} & \text{2.} & \text{generic programming} \\\hline \text{(c)} & \text{template support} & \text{3.} & \text{defines a class}\\\hline   \text{(d)}& \text{A forward reference} & \text{4.} & \text{member function} \\\hline\text{(e)}& \text{Derived class inherits from base class} & \text{5} & \text{within a statement} \\\hline \end{array}$

 

$\begin{array} \text{} & \text{(a)}  & \text{(b)} & \text{(c)} & \text{(d)} & \text{(e)} \\  \text{A.}& \text{1} & \text{5} & \text{4} & \text{2} & \text{3} \\ \text{B.} & \text{1} & \text{5} & \text{2} & \text{3} & \text{4} \\ \text{C.} & \text{5} & \text{1} & \text{2} & \text{3}  & \text{4} \\  \text{D.} & \text{5} & \text{4} & \text{3} & \text{1} & \text{2} \end{array}$

Codes :

          (a)      (b)      (c)      (d)      (e)

  1. 1        5         4        2         3
  2. 1        5         2        3         4
  3. 5        1         2        3         4
  4. 5        4         3        1         2
in Object Oriented Programming
edited by
341 views

1 Answer

0 votes

Ans: B

Garbage collection concept belongs to Java   (a)-----> 1

Derived class inherits  member function from base class. (e)----> 4

By using these two hints, option B is right ans

Related questions

1 vote
1 answer
1
1.2k views
Member of a class specified as ______ are accessible only to method of the class. Private Public Protected Derive
asked Sep 15, 2016 in Object Oriented Programming makhdoom ghaya 1.2k views
0 votes
1 answer
2
69 views
Which of the following operators cannot be overloaded in $C/C++$ ? Bitwise right shift assignment Address of Indirection Structure reference
asked Mar 24 in Object Oriented Programming jothee 69 views
4 votes
3 answers
3
1k views
When a method in subclass has the same name and type signatures as a method in the superclass, then the method in the subclass ____ the method in the superclass. Overloads Friendhips Inherits Overrides
asked Aug 14, 2016 in Object Oriented Programming jothee 1k views
0 votes
2 answers
4
134 views
Which of the following cannot be passed to a function in C++? Constant Structure Array Header file
asked Mar 24 in Object Oriented Programming jothee 134 views
...