Name and briefly explain methods of testing a program for errors.

What will be an ideal response?


Answers will vary.

Computer Science & Information Technology

You might also like to view...

Given the following statements from a certain program:

``` Call Purchase Price module Write “Come back soon”``` What statement is executed immediately after the last statement in thePurchase Price module? a. Write “Come back soon” b. The first statement in the Purchase Price module c. Nothing is executed; this is an illegalCall d. It is impossible to tell; not enough information is given

Computer Science & Information Technology

Create a class SongCard that represents a gift card for the purchase of songs online.

It should have the following private attributes: • songs—the number of songs on the card • activated—true if the card has been activated and the following methods: • SongCard(n)—a constructor for a card with n songs. • activate()—activates the gift card. Throws an exception if the card has already been activated. • buyASong()—records the purchase of one song by decreasing the number of songs left for purchase using this card. Throws an exception if the gift card is either completely used or not active. • songsRemaining()—returns the number of songs that can be purchased using the gift card.

Computer Science & Information Technology

Groups of statements you can execute as a single unit are called ____________________.

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

Computer Science & Information Technology

COGNITIVE ASSESSMENT Which of the following best describes the term, cybercrime?

A. online or Internet-based illegal acts B. any illegal act involving a computer C. a type of gaming software that simulates criminal acts D. using the Internet to apprehend and prosecute criminals

Computer Science & Information Technology