
C Programming and Game Control Quiz
Authored by Aarav Puri
Computers
6th - 8th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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?
`:`
`.`
`;`
`,`
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
S2 Subject Choice Quiz
Quiz
•
8th - 10th Grade
10 questions
Ulangan formatif Scratch
Quiz
•
7th Grade
15 questions
Szövegszerkesztés - Formázások 2
Quiz
•
6th - 7th Grade
9 questions
Измерение информации
Quiz
•
8th - 10th Grade
10 questions
Tin 6_Chủ đề A_ Bài 4
Quiz
•
6th - 8th Grade
12 questions
Image Editing
Quiz
•
7th Grade
9 questions
IC3_GS6_L2_Bai24-25
Quiz
•
7th Grade
10 questions
Visual Basic 2010
Quiz
•
8th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade