Which of the following is an advantage of a sentinel-controlled loop?

A. The number of iterations does not have to be known.
B. An extreme or dummy value can be entered.
C. The loop is always performed at least one time.
D. It could be used with the while form of the loop.

Answer: A

Computer Science & Information Technology

You might also like to view...

A company wishes to prevent unauthorized employee access to the data center. Which of the following is the MOST secure way to meet this goal?

A. Use Motion detectors to signal security whenever anyone entered the center B. Mount CCTV cameras inside the center to monitor people as they enter C. Install mantraps at every entrance to the data center in conjunction with their badges D. Place biometric readers at the entrances to verify employees' identity

Computer Science & Information Technology

An algorithm with an O(n²) efficiency is more efficient than one with O(n log n) efficiency.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology