Font size
WorksheetsComputers 11/21 Robot coding
Total questions: 25
Worksheet time: 15mins
Every C++ program will have a function that is called ____.
start
begin
main
int
Which line of code is the correct way to display the message Hello World! to the console screen?
cout << Hello World!;
cout << "Hello World!"
cout << "Hello World!";
cout >> "Hello World!';
The __________ decodes an instruction and generates an electronic signal.
Arithmetic and Logic Unit
Main memory
BIOS
Control Unit
None of these
A program is
A logical and step-by-step set of directions for the robot to follow
A logical and step-by-step set of directions for the programmer to follow
A set of directions, written in paragraph form, that even a robot can follow
None of the above
3. What is a programming language?
Only ROBOTC
A method for the robot to communicate with the programmer
A program that allows the robot to think for itself
A language that lets the programmer communicate a plan to the robot
4 Pseudocode is:
A False Code
A code, written in English, that the robot can understand
A code, written in binary language, that the robot can understand
A set of basic steps that the human can use to plan the program
Ports are always numbered in robotics starting with port #...
(a)
When you want to make the robot spin....
One motor moves positive and the other moves a little less positive
One motor moves negative and the other moves a little less negative
One motor moves positive and the other moves at zero.
One motor moves positive and the other moves negative.
The motor command needs 2 parameters. The first is the (a) # and the second is the power or percentage of speed.
Before you run your program you must (a)
What is the specific name of the following symbol? {
(a)
What is a code comment?
A way to teach Karel a new word
A way to give notes to the reader to explain what your code is doing
A message to your teacher in code
A place to write whatever you want in your code
What is the purpose of debugging?
To find and fix errors in programs
To repeat an action over and over again
To program a robot
To draw shapes using loops
Coding is used ...
in robotics
in the automotive industry
in the medical field
all of the above
Which language does a computer understand?
Sync language
English language
Programming language
Note language
What is a LOOP?
Something that only happens once
Something that gets repeated
Sometimes that happens twice
Servo Motor can be used with robotic arm applications?
True
False
What are the names of the small rotating motor?
Engine
Servo
Switch
Micro:bit
What is this part?
wheel hub
rubber band
shaft
tire
Msleep (9000);
rest 9000 seconds
pause 9000 seconds
all stop for 9 seconds
pause for 9 seconds
