WorksheetsWarships (Lower 6th)
Total questions: 12
Worksheet time: 6mins
Name a constant:
Ships
TrainingGame
Row
Column
What parameters are passed into the procedure MakePlayerMove?
Board, Ships, FileName
Row, Column
Board, Ships
Board, Ships, Row, Column
What procedure has the most parameters passed to it?
MakePlayerMove And PrintBoard
ValidateBoatPosition and CheckWin
PlaceShip and Main
PlaceShip and ValidateBoatPosition
When does a player win?
When all shots have been fired.
When all boat have been hit once.
When all boats have been sunk.
When you run out of time.
What advantage does using a struct give us?
It is another way of using an Array.
It can hold different variables.
It can be changed during the running of a program.
It can hold different data types.
What data type is returned by GetMenuChoice?
void
string
array
int
What data type is returned by PlayGame?
void
string
array
int
How do you access the elements of the struct ShipType?
Size and Name
Ship[x].Size and Ship[x].Name
Ship.Name and Ship.Size
Ship(Name) and Ship(Size)
What data structure is Board?
Array
Struct
Class
Method
How many hits are needed to win?
16
15
17
18
If you are unlucky, how many misses can you get?
94
83
72
61
What are the coordinates for the bottom right cell?
[0,0]
[10,10]
[1,1]
[9,9]
