ROBOTIC I - FINAL EXAM PRACTICE
QUESTIONS & ANSWERS
A program is - Correct Answers -A-A logical and step-by-step set of directions for the
robot to follow
B-A logical and step-by-step set of directions for the programmer to follow
C-A set of directions, written in paragraph form, that even a robot can follow
D-None of the above
Answer: A
The role of the robot is to carry out the plan by following the steps in the program. -
Correct Answers -A-True
B-False
Answer: A
What is a programming language? - Correct Answers -A-Only ROBOTC
B-A method for the robot to communicate with the programmer
C-A program that allows the robot to think for itself
D-A language that lets the programmer communicate a plan to the robot
Answer: D
Pseudocode is - Correct Answers -A- False code
B- A code, written in English, that the robot can understand
C- A code, written in binary language, that the robot can understand
D- A set of basic steps that the human can use to plan the program
Answer: D
________ are a convenient way to talk about what the robot is doing and what it must
do to carry out the plan created by the programmer. - Correct Answers -A- Operations
B- Actions
C- Behaviors
D- Instructions
Answer: C
Simple behaviors are made up of complex behaviors - Correct Answers -A- True
B- False
Answer: B
Which one of these representations of Task Main will work in ROBOTC? - Correct
Answers -A- Task main ()
B- task main ()
, C- Taskmain ()
D- task main;
E- all of them
Answer: B
What does it mean when a command appears in color when typed in ROBOTC? -
Correct Answers -A- The command is typed incorrectly
B- The command is not allowed in the command
C- ROBOTC recognizes the command as an important keyword
D- It is highlighted so the programmer should look at the word or name carefully
Answer: C
All programs must end with a 'Stop' command. - Correct Answers -A- True
B- False
Answer: B
The purpose of 'whitespace' is: - Correct Answers -A- To allow the robot to understand
the program better
B- To make the program more readable to the programmer
C- To speed the operation of the robot
D-To slow the operation of the robot
Answer: B
If there are no more statements to run in the program: - Correct Answers -A- The robot
will stop
B- The robot will continue its last statement until it can find another statement
C- The robot will continue its last statement until it can find the Stop command
D- The robot will go back to the beginning of the program and start all over
Answer: A
A simple statement is: - Correct Answers -A- A statement that never uses words with
more than two syllables
B- A line of code, irrespective of spelling
C- A line of code irrespective of punctuation
D- A line of code including all the appropriate words, numbers and punctuation
Answer: D
If one of a paired punctuation such as parentheses is missing: - Correct Answers -A-
The robot will assume that it is there and continue running
B- The program will not compile and the programmer will see an error message
C- The program will bypass that statement
D- The program will delete the paired punctuation that is not missing
Answer: B
Pick the true statement: - Correct Answers -A- Paired punctuation are interchangeable.
i.e., You can replace a pair of square brackets with a pair of curly braces
QUESTIONS & ANSWERS
A program is - Correct Answers -A-A logical and step-by-step set of directions for the
robot to follow
B-A logical and step-by-step set of directions for the programmer to follow
C-A set of directions, written in paragraph form, that even a robot can follow
D-None of the above
Answer: A
The role of the robot is to carry out the plan by following the steps in the program. -
Correct Answers -A-True
B-False
Answer: A
What is a programming language? - Correct Answers -A-Only ROBOTC
B-A method for the robot to communicate with the programmer
C-A program that allows the robot to think for itself
D-A language that lets the programmer communicate a plan to the robot
Answer: D
Pseudocode is - Correct Answers -A- False code
B- A code, written in English, that the robot can understand
C- A code, written in binary language, that the robot can understand
D- A set of basic steps that the human can use to plan the program
Answer: D
________ are a convenient way to talk about what the robot is doing and what it must
do to carry out the plan created by the programmer. - Correct Answers -A- Operations
B- Actions
C- Behaviors
D- Instructions
Answer: C
Simple behaviors are made up of complex behaviors - Correct Answers -A- True
B- False
Answer: B
Which one of these representations of Task Main will work in ROBOTC? - Correct
Answers -A- Task main ()
B- task main ()
, C- Taskmain ()
D- task main;
E- all of them
Answer: B
What does it mean when a command appears in color when typed in ROBOTC? -
Correct Answers -A- The command is typed incorrectly
B- The command is not allowed in the command
C- ROBOTC recognizes the command as an important keyword
D- It is highlighted so the programmer should look at the word or name carefully
Answer: C
All programs must end with a 'Stop' command. - Correct Answers -A- True
B- False
Answer: B
The purpose of 'whitespace' is: - Correct Answers -A- To allow the robot to understand
the program better
B- To make the program more readable to the programmer
C- To speed the operation of the robot
D-To slow the operation of the robot
Answer: B
If there are no more statements to run in the program: - Correct Answers -A- The robot
will stop
B- The robot will continue its last statement until it can find another statement
C- The robot will continue its last statement until it can find the Stop command
D- The robot will go back to the beginning of the program and start all over
Answer: A
A simple statement is: - Correct Answers -A- A statement that never uses words with
more than two syllables
B- A line of code, irrespective of spelling
C- A line of code irrespective of punctuation
D- A line of code including all the appropriate words, numbers and punctuation
Answer: D
If one of a paired punctuation such as parentheses is missing: - Correct Answers -A-
The robot will assume that it is there and continue running
B- The program will not compile and the programmer will see an error message
C- The program will bypass that statement
D- The program will delete the paired punctuation that is not missing
Answer: B
Pick the true statement: - Correct Answers -A- Paired punctuation are interchangeable.
i.e., You can replace a pair of square brackets with a pair of curly braces