Lesson details

Key learning points

  1. In this lesson, we will focus on creating and using a test plan to test our Battle Boats program.

Licence

This content is made available by Oak National Academy Limited and its partners and licensed under Oak’s terms & conditions (Collection 1), except where otherwise stated.

Loading...

3 Questions

Q1.
If you want to increase the value held in the score variable by 1, which line of code should you use?
score + 1
score = 1
score = 1 + 1
Correct answer: score = score + 1
Q2.
Complete the sentence. A while loop is an example of ...
Correct answer: Iteration
Selection
Sequence
Subroutines
Q3.
If you want a block of code to repeat forever, what statement should you use?
repeat forever:
repeat Forever:
while true:
Correct answer: while True:

3 Questions

Q1.
In the context of test data. What is this a description of: "This type of data should not be accepted by the program or it will cause an error. For example, an integer is entered when a string is required. "
Boundary data
Correct answer: Erroneous data
Normal data
Q2.
In the context of test data. What is this a description of: "This type of data should be accepted by the program and is valid. It is the typical data that you would expect to be entered into your program. "
Boundary data
Erroneous data
Correct answer: Normal data
Q3.
In the context of test data. What is this a description of: "This type of data should be accepted by the program and is valid. It is used to check that values entered at the edge of a range will be accepted. In some circumstances you may also wish to test values just outside the range."
Correct answer: Boundary data
Erroneous data
Normal data