edited by
1,367 views
2 votes
2 votes

Match the following style rules for reusability $:$

$\begin{array}{}   & \textbf{List – I} && \textbf{List – II} \\ \text{a.} & \text{Keep methods coherent} & \text{i.} & \text{Write a method to get the last} \\ &&& \text{element of a list} \\ \text{b.} & \text{Keep methods small} & \text{ii.} & \text{Maintain a parallel structure} \\ &&& \text{when possible} \\ \text{c.} & \text{Keep methods consistent} & \text{iii.} & \text{Breaking a method into smaller parts} \\ \text{d.} & \text{Provide uniform coverage} & \text{iv.} & \text{Performs a single function or a group} \\ &&& \text{of a closely related functions} \\  \end{array}$

$\textbf{Codes :}$

  1. $\text{a-iv, b-iii, c-ii, d-i}$
  2. $\text{a-ii, b-i, c-iv, d-iii}$
  3. $\text{a-iii, b-iv, c-ii, d-i}$
  4. $\text{a-ii, b-iii, c-iv, d-i}$
edited by

1 Answer

1 votes
1 votes

ans is A

Keep methods coherent  --->    Performs a single function or a group of a closely related functions

Keep methods small----> Breaking a method into smaller parts

Keep methods consistent--->Maintain parallel structure when possible

Provide uniform coverage--->Write a method to get the last element of a list

Answer:

Related questions

2 votes
2 votes
1 answer
1
2 votes
2 votes
1 answer
2
2 votes
2 votes
1 answer
3
go_editor asked Jul 27, 2016
2,413 views
Match the following with respect to relationship objects and classes $:$$\begin{array}{} & \textbf{List – I} && \textbf{List – II} \\ \text{a.} & \text{State diagram}...