Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Warships (Lower 6th)

Total questions: 12

Worksheet time: 6mins

Name
Class
Date
1.

Name a constant:

a)

Ships

b)

TrainingGame

c)

Row

d)

Column

2.

What parameters are passed into the procedure MakePlayerMove?

a)

Board, Ships, FileName

b)

Row, Column

c)

Board, Ships

d)

Board, Ships, Row, Column

3.

What procedure has the most parameters passed to it?

a)

MakePlayerMove And PrintBoard

b)

ValidateBoatPosition and CheckWin

c)

PlaceShip and Main

d)

PlaceShip and ValidateBoatPosition

4.

When does a player win?

a)

When all shots have been fired.

b)

When all boat have been hit once.

c)

When all boats have been sunk.

d)

When you run out of time.

5.

What advantage does using a struct give us?

a)

It is another way of using an Array.

b)

It can hold different variables.

c)

It can be changed during the running of a program.

d)

It can hold different data types.

6.

What data type is returned by GetMenuChoice?

a)

void

b)

string

c)

array

d)

int

7.

What data type is returned by PlayGame?

a)

void

b)

string

c)

array

d)

int

8.

How do you access the elements of the struct ShipType?

a)

Size and Name

b)

Ship[x].Size and Ship[x].Name

c)

Ship.Name and Ship.Size

d)

Ship(Name) and Ship(Size)

9.

What data structure is Board?

a)

Array

b)

Struct

c)

Class

d)

Method

10.

How many hits are needed to win?

a)

16

b)

15

c)

17

d)

18

11.

If you are unlucky, how many misses can you get?

a)

94

b)

83

c)

72

d)

61

12.

What are the coordinates for the bottom right cell?

a)

[0,0]

b)

[10,10]

c)

[1,1]

d)

[9,9]