The term “defensive programming” refers to all of the following except:

a. ensuring that a division by zero does not take place
b. ensuring that input data is within the proper range
c. ensuring that there are no compound conditions in a selection structure
d. ensuring that a negative number is not input to the Sqrt function

C

Computer Science & Information Technology

You might also like to view...

An ecommerce ____________ is the software that handles ecommerce transactions.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

If you put assert macros throughout your code, then

a. You have to put up with the resulting inefficiency and program halts with messages indecipherable to the user until you edit your code to remove them. b. You can put #define NDEBUG in your code in the file just before the #include directive. c. With most command line compilers and IDEs (integrated development environment), you can define NDEBUG for the compile session by using an IDE menu option or you can use the compiler command line option –DNDEBUG.

Computer Science & Information Technology