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"
Correct Answer:
Verified
Q13: An instance of a class is known
Q14: A(n)_ is a collection of data and
Q15: Object-oriented design identifies objects by focusing on
Q16: A(n)_ is a construct that can be
Q17: A set of objects that have the
Q19: Self-contained units of code are called _.
A)modules
B)invariants
C)algorithms
D)exceptions
Q20: A(n)_ is a condition that is always
Q21: The cost of software includes the consequences
Q22: A(n)_ is a mechanism for error handling.
A)prototype
B)class
C)exception
D)abstract
Q23: The specifications of a module indicate how
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents