Functions in RobotC

Quiz
•
Science, Computers, Instructional Technology
•
7th - 11th Grade
•
Medium
Ina Kirsten
Used 14+ times
FREE Resource
22 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
True or False: Functions save time and space by allowing common behaviors to be written as functions, and then run together as a single statement (rather than re-typing all the individual commands).
True
False
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
True or False: Functions must be created and then run separately.
True
False
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Separating behaviors into different functions allows your code to follow your planning more easily (one function per behavior or even sub-behavior).
True
False
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
True or False: Through the use of ____________, multiple related (but not identical) tasks can be handled with a single, intuitive function.
semicolons
curly brackets
parameters
()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A function is created by “_______” it, and run by “calling” it.
initializing
declaring
creating
naming
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Declare the function by using the word “_______”, followed by the name you wish to give to the function. It’s helpful to give the function a name that reflects the behavior it will perform.
par
int
var
void
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Within the function’s ________ , write the commands exactly as you would normally. When the function is called, it will run the lines between its braces in order, just like task main does with the code between its own braces.
( )
[ ]
{curly braces}
;
Create a free account and access millions of resources
Similar Resources on Wayground
21 questions
Levels of Organization of Living Things

Quiz
•
7th Grade
18 questions
Coding review

Quiz
•
11th Grade
20 questions
Python Programming Quiz

Quiz
•
9th - 12th Grade
20 questions
AP CSP Exam Review

Quiz
•
9th - 12th Grade
21 questions
Levels of Organization & body systems

Quiz
•
6th - 9th Grade
20 questions
Unit 1 Exam, 7.12C, 7.12DE, 7.12F

Quiz
•
7th Grade
20 questions
Body Systems Working Together

Quiz
•
7th Grade
19 questions
Parameters and Return Review

Quiz
•
9th - 12th 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 Science
20 questions
Scientific method and variables

Quiz
•
8th Grade
20 questions
Chemical and Physical Changes

Quiz
•
7th Grade
20 questions
Physical and Chemical Changes

Quiz
•
8th Grade
20 questions
Elements, Compounds and Mixtures

Quiz
•
8th Grade
23 questions
7.6C Aqueous Solutions

Quiz
•
7th Grade
20 questions
Law of Conservation of Mass

Quiz
•
6th - 8th Grade
16 questions
Metric Conversions

Quiz
•
11th Grade
20 questions
Qualitative and Quantitative Observations

Quiz
•
7th Grade