Lesson details

Key learning points

  1. In this lesson, we will complete an evaluation of 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.
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

5 Questions

Q1.
What does this logical operator represent? !=
Equal to
Less than or equal to
More than or equal to
Correct answer: Not equal to
Q2.
True or False: You can return a list from a function
False
Correct answer: True
Q3.
What method should you use to add something to the end of a list?
add()
Correct answer: append()
insert()
plus()
Q4.
Which of these is the correct import statement for importing the sense hat module?
from sense_hat import sensehat
Correct answer: from sense_hat import SenseHat
from Sense_Hat import SenseHat
from Sense_HAT import SenseHAT
Q5.
Is this a definition for a 2D array or a 2D list? A __________ must be a predefined fixed size and each item held must be of the same data type.
Correct answer: 2D array
2D list

Lesson appears in

UnitComputing / Programming 6: Dictionaries and datafiles

Computing