C Programming and Game Control Flashcard

C Programming and Game Control Flashcard

Assessment

Flashcard

Computers

6th - 8th Grade

Hard

Created by

Quizizz 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

`;`

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?