C Programming and Game Control Flashcard

Flashcard
•
Computers
•
6th - 8th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

10 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What does the `init()` function do in your C code?
Back
Sets up things at the beginning of the program
2.
FLASHCARD QUESTION
Front
Which function is called repeatedly during the game to control the robot? Options: `init()`, `repeat()`, `loop()`, `setup()`
Back
`loop()`
3.
FLASHCARD QUESTION
Front
What does the following line do? `game.movePlot(1);`
Back
Moves robot to Plot 1
4.
FLASHCARD QUESTION
Front
How do you water a crop at Plot 1 in C?
Back
`game.WaterCrop(1);`
5.
FLASHCARD QUESTION
Front
How do you tell the game to wait for 10 seconds? Options: `game.wait(10);`, `game.SetWait(10);`, `wait(10);`, `game.sleep(10);`
Back
`game.SetWait(10);`
6.
FLASHCARD QUESTION
Front
Which of the following is a correct way to plant a melon at Plot 1? Options: `plantCrop(1,4);`, `game.plantCrop(1,4);`, `game.Plant(1,4);`, `game.PlantCrop(4,1);`
Back
`game.plantCrop(1,4);`
7.
FLASHCARD QUESTION
Front
What symbol is required at the end of each line in C code?
Back
`;`
Create a free account and access millions of resources
Similar Resources on Wayground
8 questions
Unit 4 - Ojibwe

Flashcard
•
6th Grade
10 questions
functions of root system in plants

Flashcard
•
6th Grade
7 questions
Economic Terms Flashcards

Flashcard
•
7th Grade
10 questions
The Outsiders Ch. 4-6

Flashcard
•
7th Grade
10 questions
Lesson 2 JH !st grade

Flashcard
•
7th Grade
10 questions
All About Images for Google Classroom

Flashcard
•
5th - 8th Grade
7 questions
Digital Citizenship- Finding Balance

Flashcard
•
6th - 8th Grade
10 questions
Unit 7 Vocab Flashcard - Mesoamerica & South America

Flashcard
•
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
9/11 Experience and Reflections

Interactive video
•
10th - 12th 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
9 questions
Tips & Tricks

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

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

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

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

Quiz
•
6th - 8th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
20 questions
Copyright and Fair Use

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

Interactive video
•
8th Grade