wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Semester 1 STEM Robotics II Study Guide 25/26

Total questions: 46

Worksheet time: 23mins

Name
Class
Date
1.
Which of these is a valid Karel command?
a)
move;
b)
MOVE
c)
move();
d)
move()
2.
What are the horizontal pathways called in a Karel world?
a)
rows
b)
columns
c)
points
d)
Karel’s position
3.
What are the vertical pathways called in a Karel world?
a)
rows
b)
columns
c)
points
d)
Karel’s position
4.
If Karel starts facing East in the first row, third column, what row and column will Karel be on after this code runs? move(); move(); move(); turnLeft(); move();
a)
Row 1 and Column 3
b)
Row 4 and Column 4
c)
Row 2 and Column 6
d)
Row 6 and Column 2
5.
If Karel is facing North and the code turnLeft(); turnLeft();
a)
North
b)
South
c)
East
d)
West
6.
How many times should Karel turn left in order to turn right?
a)
1
b)
2
c)
3
d)
4
7.
What can be used to teach Karel to turn right?
a)
Functions
b)
Variables
c)
Dog treats
d)
Karel can already turn right
8.
Which function will teach Karel how to spin in a circle one time? A function spin() { turnRight(); } B function spin() { turnLeft(); turnLeft(); turnLeft(); turnLeft(); } C function spin() { turnLeft(); turnLeft(); } D function spin() { move(); move(); move(); move(); }
a)
A
b)
B
c)
C
d)
D
9.
How many times should you call the main function in a program?
a)
0
b)
1
c)
2
d)
However many times you like
10.
How many times should the main function be defined in a program?
a)
0
b)
1
c)
2
d)
However many you like
11.
What is top down design?
a)
Top down design is a way of designing your program by starting with the biggest problem and breaking it down into smaller and smaller pieces that are easier to solve.
b)
Top down design is a way that you can create designs on a computer to put on a web page
c)
Top down design is a way of designing your programs starting with the individual commands first
d)
Top down design is a way to use loops and classes to decompose the problem
12.
Why do we use functions in programming?
a)
Break down our program into smaller parts
b)
Avoid repeating code
c)
Make our program more readable
d)
All of the above
13.
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
14.
Each of the following answer choices describes a basketball game. Which answer choice describes the game with the lowest level of abstraction?
a)
The Warriors won by 10 points.
b)
The Warriors had an early lead, but were down by 4 at halftime. They tied it up in the 4th quarter and the game went into overtime. They won by 10 points in overtime.
c)
First, Steph Curry jumped in the air and grabbed the ball. Then he dribbled it three times and passed it to Klay Thompson…
d)
First, Steph Curry flexed his left and right quad muscles at the exact same time, then he flexed each muscle in his fingers…
15.
What commands does SuperKarel know that regular Karel does not?
a)
turnLeft() and jump()
b)
turnRight() and jump()
c)
turnAround() and turnRight()
d)
turnAround() and jump()
16.
Which general if statement definition is written correctly? A for (condition) { // code } B if (condition) { //code } C if (let i = 0; i < count; i++) { //code } D if false { //code }
a)
A
b)
B
c)
C
d)
D
17.
Why do we use if statements in JavaScript?
a)
To break out of some block of code
b)
To do something only if a condition is true
c)
To do something while a condition is true
d)
To repeat something for a fixed number of times
18.
Why do we use if/else statements in JavaScript?
a)
To repeat something for a fixed number of times
b)
To either do something if a condition is true or do something else
c)
To break out of some block of code
d)
To repeat something while a condition is true
19.
Why do we use while loops in JavaScript?
a)
To break out of some block of code
b)
To do something if a condition is true
c)
To repeat some code while a condition is true
d)
To repeat something for a fixed number of times
20.
Why should a programmer indent their code?
a)
Helps show the structure of the code
b)
Easier for other people to understand
c)
Indenting is a key part of good programming style
d)
All of the above
21.
What do we use control structures for in JavaScript?
a)
Control the flow of the program; how the commands execute.
b)
Start our JavaScript program
c)
Store information for later
d)
Teach Karel new commands
22.
Which of the below are examples of control structures? (A) if (B) if/else (C) while (D) for
a)
A only
b)
A and B only
c)
A and C only
d)
A, B, C, and D
23.
Which of the following statements is the simplest and most accurate definition of a computer?
a)
A computer is a machine that is able to solve any problem.
b)
A computer is a machine that can be programmed.
c)
A computer is something that performs calculations by following and executing specific instructions to solve a problem.
d)
A computer is something that runs applications and accesses the internet.
24.
Which of the following choices correctly orders the early types of computers from earliest to most recent?
a)
Abacus, Analytical Engine, ENIAC, IBM Laptop
b)
Analytical Engine, Abacus, IBM Laptop, ENIAC
c)
ENIAC, Analytical Engine, Abacus, IBM Laptop
d)
IBM Laptop, ENIAC, Analytical Engine, Abacus
25.
Which of the following statements is true? I. Computers have only been around since the 1940’s II. One reason computers were first developed was to do mathematical computations faster III. Some modern computers include laptops, cell phones, and tablets IV. Computers are able to perform tasks by using logic
a)
I, III
b)
II, III, IV
c)
III, IV
d)
I, II, III, IV
26.
What is the purpose of an output device?
a)
To allow the computer to store information or programs.
b)
To allow the user to give data or information to the computer.
c)
To allow computers to connect and communicate with other computers.
d)
To allow the computer to display or communicate the result of a computation
27.
What is the purpose of a network device?
a)
To allow the computer to store information or programs.
b)
To allow the user to give data or information to the computer.
c)
To allow computers to connect and communicate with other computers.
d)
To allow the computer to display or communicate the result of a computation
28.
What is the purpose of an input device?
a)
To allow the computer to store information or programs.
b)
To allow the user to give data or information to the computer.
c)
To allow computers to connect and communicate with other computers.
d)
To allow the computer to display or communicate the result of a computation
29.
What is the purpose of a storage device?
a)
To allow the computer to store information or programs.
b)
To allow the user to give data or information to the computer.
c)
To allow computers to connect and communicate with other computers.
d)
To allow the computer to display or communicate the result of a computation
30.
Choose what kind of device a “speaker* is.
a)
Input Device
b)
Output Device
c)
Storage Device
d)
Network Device
31.
Choose what kind of device a “router* is.
a)
Input Device
b)
Output Device
c)
Storage Device
d)
Network Device
32.
Choose what kind of device a “floppy disk* is.
a)
Input Device
b)
Output Device
c)
Storage Device
d)
Network Device
33.
Choose what kind of device a web-camera is.
a)
Input Device
b)
Output Device
c)
Storage Device
d)
Network Device
34.
Choose what kind of device a mouse is.
a)
Input Device
b)
Output Device
c)
Storage Device
d)
Network Device
35.
Which of the following choices lists the three main components of a computer’s hardware?
a)
CPU, Memory, Motherboard
b)
CPU, Flash memory, Processor
c)
Processor, Binary, RAM
d)
Input devices, Output devices, Motherboard
36.
Which of the following devices is the device that connects all of the physical components of a computer together?
a)
CPU
b)
Memory
c)
Logic
d)
Motherboard
37.
What does CPU stand for?
a)
Computer’s Processing Unit
b)
Computer’s Plug-in Unit
c)
Central Processing Unit
d)
Central Pushing Unit
38.
Choose the option that correctly identifies this picture:
a)
CPU
b)
Motherboard
c)
USB drive
d)
CD
39.
Choose the option that correctly identifies this picture:
a)
CPU
b)
Motherboard
c)
CD
d)
Operating System
40.
Choose the option that correctly identifies this picture:
a)
CPU
b)
Motherboard
c)
CD
d)
Operating System
41.
Choose the option that correctly identifies this picture:
a)
CPU
b)
Motherboard
c)
CD
d)
Operating System
42.
Which of the following choices is a brand-new application of computers, having come about in the past 5 years?
a)
Analyzing data
b)
Solving mathematical equations
c)
Making predictions about future events based on data gathered about past events
d)
None of the above.
43.
Which of the following fields use computers? I. Computer Science II. Medicine III. Video Gaming IV. Automotive (Cars)
a)
I
b)
I, III
c)
I, II, III
d)
I, II, III, IV
44.
Which of the following is an application of Artificial Intelligence?
a)
Game AI’s
b)
Foreign language translation
c)
Recognizing handwriting
d)
All of the above
45.
Which of the following statements is something the operating system of a computer is responsible for doing?
a)
Managing memory allocation for all applications.
b)
Providing a way for the user to create text documents.
c)
Allowing the user to access the internet.
d)
Allowing the user to write programs.
46.
Which of the following items is an example of a user application? I. Browser II. Text editor III. Games IV. File Explorer
a)
II, III
b)
I, II
c)
I, II, IV
d)
I, II, III, IV