A user is encountering some error with his design, among which of the following the debugging must be easy?

A user is encountering some error with his design, among which of the following the debugging must be easy?
A. In a code containing no functions or procedures
B. In a code containing functions but no procedures
C. In a code containing procedures but no functions
D. In a code containing both functions as well as procedures
 
Answer: b
Explanation: The debugging is easy with the use of functions. However, procedures also divide the code into small segments but there are some side effects with the procedures. For example, the change in value of a signal without being an argument of the procedure.
 

Tìm kiếm

Back
Top