Chitika

Friday, 3 January 2014

Ques 11-III-D-13

11. Match the following style rules for reusability:
         List-I                               List-II

a. Keep methods coherent
i. Write a method to get the last element of a list.

b. Keep methods small
ii. Maintain parallel structure when possible.

c. Keep methods consistent
iii. Breaking a method into smaller parts.

d. Provide uniform coverage
iv. Perform a single function or a group of closely related function.


Codes:

a
b
c
d
(A)
iv
iii
ii
i
(B)
ii
i
iv
iii
(C)
iii
iv
ii
i
(D)
ii
iii
iv
i
ANS-(A)

Description is coming soon---

No comments:

Post a Comment