Practical+Testing+Examples


 * Question 1**

A program has been written to display the times table of a number of the user's choosing.

The screenshots below show how it should function:



Download the actual program here

It has a syntax error and a logic error.

Fix these errors, and note them in your jotter


 * Question 2**

A program has been written to convert the 12 hour time into 24 hour time. It should ask the user for hours (1-12), minutes (0-59) and whether the time is am or pm. The screenshots below show how the program should work



Download the actual program here

It has 5 logic errors. Fix these errors, and note them in your jotter


 * Question 3**

A program is required to calculate and display the gradient of 2 lines.

Download the actual program here



It has 5 syntax errors and 1 run-time error. Fix these errors, and note them in your jotter


 * Question 4**

The LiveCode software development environment has debugging tools built in.

Use the LiveCode with one of your own programs to:

1. Set a breakpoint 2. Step through the code after the breakpoint line by line 3. Monitor the value of each of your variables



Now write a short explanation of what you did, and what you observed.