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.
You might also like to view...
A ________ is a server program that allows users to collaborate to create the content of a Web site
A) diff B) bot C) wiki D) blog
In the accompanying figure of aMicrosoft Access 2016 document, which of the following is Box 1 pointing to??
?
A. ?Insert Rows button B. ?Shift Rows button C. ?Hide Rows button D. ?Delete Rows button
Match the following terms to their meanings:
I. Also referred to as the system tray A. free-form snip II. Lets you draw an irregular line around an area of the screen B. Computer window III. Shows you the contents of a folder C. Notification area IV. Captures the entire screen D. full-screen snip V. Displays the devices on your computer E. folder window
The compiler does not take indentation into account when compiling code, but consistent indentation can help readers understand a program's ____.
A. machine language B. class C. decision D. logic