1.

Which of the following are ways to benchmark code?(a) Timing the code(b) Calculating the number of operations performed(c) Timing the code & Calculating the number of operations performed(d) Calculating the number of lines

Answer» Right choice is (c) Timing the code & Calculating the number of operations performed

The explanation is: There are a couple of ways to benchmark code—either by timing it or by calculating the number of operations performed during execution. Both of them help in calculating how efficient and modular the code.


Discussion

No Comment Found

Related InterviewSolutions