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
15 questions
Microsoft MakeCode Introduction

Quiz
•
6th - 8th Grade
14 questions
Scratch Exam 8

Quiz
•
8th Grade
10 questions
Scratch Introduction

Quiz
•
6th - 8th Grade
15 questions
Google Slides

Quiz
•
7th Grade
15 questions
mit app inventor basics quiz

Quiz
•
4th - 8th Grade
12 questions
War Games

Quiz
•
7th - 8th Grade
13 questions
MINECRAT: Learn and have fun

Quiz
•
5th - 7th Grade
10 questions
Video Games Quiz

Quiz
•
7th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

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

Interactive video
•
6th - 10th Grade
20 questions
typing

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
20 questions
Input, Output, Processing or Storage

Quiz
•
5th - 6th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade