Search Header Logo

Coding Final Fall 2019 - Connect Four

Authored by Moshe Erlbaum

Computers

9th - 12th Grade

Coding Final Fall 2019 - Connect Four
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

On what line is the loop to draw the numbers under the board?

23
30
59
78

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How big is each box of the game board?

80 x 80

300 x 300

180 x 180

700 x 700

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the x, y coordinates of the first box of the game board?

x=180, y = -300
x = -300, y = 180
x = 180, y = -220
x = -220, y = 180

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does the draw_o know if it should draw a red or yellow checker?

The variable color will be set.
There are two draw_o functions; one for each color.
The variable turn is checked by draw_o.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What line checks if the location is valid?

59
61
63
65

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What line checks to see if the game is over?

59
61
63
65

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the condition of board[0][loc-1] != ' ' on line 61 check for?

If the column is full.
If the column is out of range.
If the board is full.
If the row is already taken.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?