# Top 57 Algorithm Quiz Question and Answer Part 2

posted Jan 21 2 min read

An interpreter

### Q47. The following pseudocode algorithm has an error. The program is supposed to ask the user for the length and width of a rectangular room, and then display the room‘s area. The program must multiply the width by the length in order to determine the area. Find the error. area = width x length Display “What is the room‘s width?“. Input width. Display “What is the room‘s length?“ Input length. Display area.

The error is that the program performs its math operation before the user has entered values for the variables length and width.

TRUE

FALSE

TRUE

### Q51. The insertion sort algorithm works by

repeatedly taking the first value in the unsorted portion of the array and placing it at its proper place in the part of the array that is already sorted

n log n

SHA-256

### Q55. How can we modify almost any algorithm to have a good best-case running time?

The best-case is therefore often not a good indicator of effectiveness of an algorithm.