wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Computers 11/21 Robot coding

Total questions: 25

Worksheet time: 15mins

Name
Class
Date
1.

Every C++ program will have a function that is called ____.

a)

start

b)

begin

c)

main

d)

int

2.

Which line of code is the correct way to display the message Hello World! to the console screen?

a)

cout << Hello World!;

b)

cout << "Hello World!"

c)

cout << "Hello World!";

d)

cout >> "Hello World!';

3.

The __________ decodes an instruction and generates an electronic signal.

a)

Arithmetic and Logic Unit

b)

Main memory

c)

BIOS

d)

Control Unit

e)

None of these

4.
You will find all of the following connections on most motherboards EXCEPT:
a)
CPU Socket
b)
RAM Memory Slots
c)
Expansion Slots (for graphics cards, sound cards, network cards, etc.)
d)
Hip and Elbow Socket
5.
CPU speed (or frequency) is measured in:
a)
Megahertz (MHz)
b)
Gigabytes (GB)
c)
Watts (W)
d)
Volts (V)
6.

A program is

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

7.

3. What is a programming language?

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

8.

4 Pseudocode is:

a)

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

9.

Ports are always numbered in robotics starting with port #...

(a)  

10.

When you want to make the robot spin....

a)

One motor moves positive and the other moves a little less positive

b)

One motor moves negative and the other moves a little less negative

c)

One motor moves positive and the other moves at zero.

d)

One motor moves positive and the other moves negative.

11.

The motor command needs 2 parameters. The first is the (a)   # and the second is the power or percentage of speed.

12.

Before you run your program you must (a)  

13.

What is the specific name of the following symbol? {

(a)  

14.

What is a code comment?

a)

A way to teach Karel a new word

b)

A way to give notes to the reader to explain what your code is doing

c)

A message to your teacher in code

d)

A place to write whatever you want in your code

15.

What is the purpose of debugging?

a)

To find and fix errors in programs

b)

To repeat an action over and over again

c)

To program a robot

d)

To draw shapes using loops

16.

Coding is used ...

a)

in robotics

b)

in the automotive industry

c)

in the medical field

d)

all of the above

17.

Which language does a computer understand?

a)

Sync language

b)

English language

c)

Programming language

d)

Note language

18.

What is a LOOP?

a)

Something that only happens once

b)

Something that gets repeated

c)

Sometimes that happens twice

19.
Coding is all about...
a)
Communicating with other students
b)
Playing games
c)
Giving instructions to a digital device
d)
Making a website
20.
What is wrong with this code?
a)
Missing Brackets
b)
Missing Comma
c)
Missing Colon
d)
Incorrect spelling 
21.
What does this code do?
a)
Draws a red rectangle
b)
Draws a red triangle
c)
Draws a red square
d)
Draws a black square
22.

Servo Motor can be used with robotic arm applications?

a)

True

b)

False

23.

What are the names of the small rotating motor?

a)

Engine

b)

Servo

c)

Switch

d)

Micro:bit

24.

What is this part?

a)

wheel hub

b)

rubber band

c)

shaft

d)

tire

25.

Msleep (9000);

a)

rest 9000 seconds

b)

pause 9000 seconds

c)

all stop for 9 seconds

d)

pause for 9 seconds