Intro to Programming Flashcards
What is the role of the human programmer?
The human programmer must come up with a plan to solve the problem, then describe the plan step-by-step to the robot, by putting the steps in a program.
What is the role of the robot?
The robot is responsible for carrying out the plan, by following the steps in the program.
What is a programming language?
The programming language lets humans and robots speak the same “language” to communicate the steps in a plan.
What is a program?
The program is the written document, written in the programming language, that describes the steps.
What is a behavior?
A behavior is anything that a robot does.
List the three main types of behaviors from least to most complicated.
Basic,simple, and complex.
What is code?
Text written in a programming language that gives commands to the robot.
Is “Task main” the same as “task main” in ROBOTC?
They are not the same. Capitalization in ROBOTC is very important.
What does it mean when a word appears in color when typed in ROBOTC?
ROBOTC recognizes the word as an important keyword or name.
After a simple statement has been run, what statement in ROBOTC is run next?
The next statement in reading order, left to right then top to bottom.
What happens when a program runs out of statements to run?
The program ends.
How does ROBOTC know where one statement ends and the next begins?
Semicolons marks the end of statements.
What purpose does “whitespace” serve?
It organizes the code for the benefit of the programmer. It has no effect on the