C Programming and Game Control Quiz

Quiz
•
Computers
•
6th - 8th Grade
•
Easy
Aarav Puri
Used 1+ times
FREE Resource
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
Similar Resources on Wayground
12 questions
Scratch interface

Quiz
•
5th - 9th Grade
10 questions
Scratch Code

Quiz
•
KG - 11th Grade
15 questions
KS3 Y8 Kodu Quiz

Quiz
•
5th - 8th Grade
15 questions
Python Casting and Input

Quiz
•
8th - 11th Grade
15 questions
Code.org Unit 2 - Web Development

Quiz
•
6th - 8th Grade
12 questions
9.1.6 - Starter Quiz

Quiz
•
8th - 9th Grade
10 questions
Programming - High Level Code & Machine Code

Quiz
•
2nd - 11th Grade
10 questions
JavaScript Vocabulary Sheet (CodeHS – Karel the Dog)

Quiz
•
8th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
8 questions
Time Management

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
15 questions
Computer Components Video

Interactive video
•
8th Grade
14 questions
Computer Hardware

Quiz
•
7th Grade
10 questions
Networking Devices and Their Functions

Interactive video
•
5th - 8th Grade