# Battle boats test

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

#### Unit quizzes are being retired in August 2023

Why we're removing unit quizzes from the website >
Quiz:

# Intro quiz - Recap from previous lesson

Before we start this lesson, let’s see what you can remember from this topic. Here’s a quick quiz!

Q1.If you want to increase the value held in the score variable by 1, which line of code should you use?

1/3

Q2.Complete the sentence. A while loop is an example of ...

2/3

Q3.If you want a block of code to repeat forever, what statement should you use?

3/3

#### Unit quizzes are being retired in August 2023

Why we're removing unit quizzes from the website >
Quiz:

# Intro quiz - Recap from previous lesson

Before we start this lesson, let’s see what you can remember from this topic. Here’s a quick quiz!

Q1.If you want to increase the value held in the score variable by 1, which line of code should you use?

1/3

Q2.Complete the sentence. A while loop is an example of ...

2/3

Q3.If you want a block of code to repeat forever, what statement should you use?

3/3

# Video

Click on the play button to start the video. If your teacher asks you to pause the video and look at the worksheet you should:

• Click "Close Video"
• Click "Next" to view the activity

Your video will re-appear on the next page, and will stay paused in the right place.

# Worksheet

These slides will take you through some tasks for the lesson. If you need to re-play the video, click the ‘Resume Video’ icon. If you are asked to add answers to the slides, first download or print out the worksheet. Once you have finished all the tasks, click ‘Next’ below.

#### Unit quizzes are being retired in August 2023

Why we're removing unit quizzes from the website >
Quiz:

# Battle Boats Test

Don’t worry if you get a question wrong! Forgetting is an important step in learning. We will recap next lesson.

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. "

1/3

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. "

2/3

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."

3/3

#### Unit quizzes are being retired in August 2023

Why we're removing unit quizzes from the website >
Quiz:

# Battle Boats Test

Don’t worry if you get a question wrong! Forgetting is an important step in learning. We will recap next lesson.

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. "

1/3

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. "

2/3

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."

3/3

# Lesson summary: Battle boats test

## Time to move!

Did you know that exercise helps your concentration and ability to learn?

For 5 mins...

Move around:
Jog

On the spot:
Dance