Wednesday, 10 June 2015

Q11,Paper 3,d13. 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. Performs a single function or a group of closely related functions.




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

No comments:

Post a Comment

Note: only a member of this blog may post a comment.