C Programming and Game Control Quiz
Quiz
•
Computers
•
6th - 8th Grade
•
Easy
Aarav Puri
Used 1+ times
FREE Resource
Enhance your content in a minute
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
UJIAN PRAKTEK TIK KELAS 8
Quiz
•
8th Grade
10 questions
Year 7 Historical development of Computers
Quiz
•
7th Grade
9 questions
Έλεγχος κατανόησης Γ Γυμνασίου
Quiz
•
6th Grade
15 questions
[RB3-Ch7] Data Verification & Validation
Quiz
•
6th - 8th Grade
10 questions
Ke-Al Azhar 8 an
Quiz
•
7th Grade - University
11 questions
Excel
Quiz
•
1st - 10th Grade
10 questions
GCSE J277 - Computational Thinking Keyword Quiz
Quiz
•
7th Grade
10 questions
Tin học 7 - Bài 11: Tạo Bài Trình Chiếu
Quiz
•
7th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
