C Programming and Game Control Flashcard

C Programming and Game Control Flashcard

Assessment

Flashcard

Computers

6th - 8th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

10 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What does the `init()` function do in your C code?

Back

Sets up things at the beginning of the program

2.

FLASHCARD QUESTION

Front

Which function is called repeatedly during the game to control the robot? Options: `init()`, `repeat()`, `loop()`, `setup()`

Back

`loop()`

3.

FLASHCARD QUESTION

Front

What does the following line do? `game.movePlot(1);`

Back

Moves robot to Plot 1

4.

FLASHCARD QUESTION

Front

How do you water a crop at Plot 1 in C?

Back

`game.WaterCrop(1);`

5.

FLASHCARD QUESTION

Front

How do you tell the game to wait for 10 seconds? Options: `game.wait(10);`, `game.SetWait(10);`, `wait(10);`, `game.sleep(10);`

Back

`game.SetWait(10);`

6.

FLASHCARD QUESTION

Front

Which of the following is a correct way to plant a melon at Plot 1? Options: `plantCrop(1,4);`, `game.plantCrop(1,4);`, `game.Plant(1,4);`, `game.PlantCrop(4,1);`

Back

`game.plantCrop(1,4);`

7.

FLASHCARD QUESTION

Front

What symbol is required at the end of each line in C code?

Back

`;`

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?

Discover more resources for Computers