Intro to Programming Flashcards

1
Q

What is the role of the human programmer?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the role of the robot?

A

The robot is responsible for carrying out the plan, by following the steps in the program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a programming language?

A

The programming language lets humans and robots speak the same “language” to communicate the steps in a plan.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a program?

A

The program is the written document, written in the programming language, that describes the steps.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a behavior?

A

A behavior is anything that a robot does.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

List the three main types of behaviors from least to most complicated.

A

Basic,simple, and complex.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is code?

A

Text written in a programming language that gives commands to the robot.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Is “Task main” the same as “task main” in ROBOTC?

A

They are not the same. Capitalization in ROBOTC is very important.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does it mean when a word appears in color when typed in ROBOTC?

A

ROBOTC recognizes the word as an important keyword or name.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

After a simple statement has been run, what statement in ROBOTC is run next?

A

The next statement in reading order, left to right then top to bottom.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What happens when a program runs out of statements to run?

A

The program ends.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How does ROBOTC know where one statement ends and the next begins?

A

Semicolons marks the end of statements.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What purpose does “whitespace” serve?

A

It organizes the code for the benefit of the programmer. It has no effect on the

How well did you know this?
1
Not at all
2
3
4
5
Perfectly