C Programming and Game Control Quiz

C Programming and Game Control Quiz

6th - 8th Grade

10 Qs

quiz-placeholder

Similar activities

Objetos cotidianos del ayer

Objetos cotidianos del ayer

1st - 6th Grade

10 Qs

G7_ICT_1.1_Digital Data

G7_ICT_1.1_Digital Data

7th Grade

10 Qs

CLASS 7 COMPUTER CH-3 QUIZ

CLASS 7 COMPUTER CH-3 QUIZ

7th Grade

11 Qs

ÔN TẬP HKII-02

ÔN TẬP HKII-02

8th Grade

15 Qs

Основные понятия языка программирования PYTHON

Основные понятия языка программирования PYTHON

7th Grade

12 Qs

Tin học 7

Tin học 7

7th Grade

15 Qs

Правила безпечної роботи з комп'ютнром

Правила безпечної роботи з комп'ютнром

7th Grade

10 Qs

Micro:bit assessment 1

Micro:bit assessment 1

7th - 8th Grade

10 Qs

C Programming and Game Control Quiz

C Programming and Game Control Quiz

Assessment

Quiz

Computers

6th - 8th Grade

Easy

Created by

Aarav Puri

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

Runs every second

Sets up things at the beginning of the program

Moves the Astrobee

Fills the watering can

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is called repeatedly during the game to control the robot?

`init()`

`repeat()`

`loop()`

`setup()`

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

Moves robot to the watering station

Moves robot to Plot 1

Plants crop at Plot 1

Waits for 1 second

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

`game.WaterCrop(1);`

`WaterCrop(1);`

`game.water(1);`

`plantCrop(1);`

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you tell the game to wait for 10 seconds?

`game.wait(10);`

`game.SetWait(10);`

`wait(10);`

`game.sleep(10);`

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct way to plant a melon at Plot 1?

`plantCrop(1,4);`

`game.plantCrop(1,4);`

`game.Plant(1,4);`

`game.PlantCrop(4,1);`

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

`:`

`.`

`;`

`,`

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?