Which of the following is an example of a logical error?
a) an algorithm that calculates the monthly payment of a loan displays incorrect results
b) an array subscript in a program goes out of range
c) a program expects a nonnegative number but reads –23
d) the beginning of a while loop is written as “whille” instead of “while”
a.
Computer Science & Information Technology
You might also like to view...
What factors should a database administrator consider when selecting the appropriate data integration tools for a given situation?
What will be an ideal response?
Computer Science & Information Technology
Monitor initialization ________.
a) occurs each time a thread returns a resource b) typically sets a variable indicating that the monitor initially is in use c) occurs only once, before threads begin using the monitor d) occurs each time a thread requests access to a resource
Computer Science & Information Technology