July 2016 - Paper 3

36:  

A triangulation of a polygon is a set of T chords that divide the polygon into disjoint triangles. Every triangulation of n-vertex convex polygon has _____ chords and divides the polygon into _____ triangles.

A.

n – 2, n – 1

B.

n – 3, n – 2

C.

n – 1, n

D.

n – 2, n – 2

 
 

Option: B

Explanation :

Click on Discuss to view users comments.

Write your comments here:



37:   Implicit return type of a class constructor is :
A.

not of class type itself

B.

class type itself

C.

a destructor of class type

D.

a destructor not of class type

 
 

Option: B

Explanation :

Click on Discuss to view users comments.

Write your comments here:



38:  

It is possible to define a class within a class termed as nested class. There are _____ types of nested classes.

A.

2

B.

3

C.

4

D.

5

 
 

Option: C

Explanation :

There are four kinds of nested class in Java.

  1. static class
  2. inner class
  3. local inner class
  4. anonymous inner class

Click on Discuss to view users comments.

Write your comments here:



39:  

Which of the following statements is correct ?

A.

Aggregation is a strong type of association between two classes with full ownership.

B.
Aggregation is a strong type of association between two classes with partial ownership.
C.
Aggregation is a weak type of association between two classes with partial ownership.
D.

Aggregation is a weak type of association between two classes with full ownership.

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



40:  

Which of the following statements is correct ?

A.

Every class containing abstract method must not be declared abstract.

B.

Abstract class cannot be directly initiated with ‘new’ operator.

C.

Abstract class cannot be initiated.

D.

Abstract class contains definition of implementation.

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here: