NEW
Font size
S
M
L
XL
WorksheetsKarel-1
Total questions: 30
Worksheet time: 37mins
Name
Class
Date
1.
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
2.
How many times should the start function be defined in a program?
a)
0
b)
1
c)
2
d)
However many you like
3.
Which of these is a valid Karel command?
a)
move;
b)
MOVE
c)
move();
d)
move()
4.
If Karel is facing South and the code:
turnLeft();
turnLeft();
runs; which direction is Karel facing now?
a)
North
b)
South
c)
East
d)
West
5.
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
6.
Karel only knows 4 commands.
a)
True
b)
False
7.
Which of the following is incorrect?
a)
putBall();
b)
Takeball();
c)
move();
d)
turnLeft();
8.
Karel's world is made up of streets and ______
a)
Boulevards
b)
Alleys
c)
Avenues
d)
Dead Ends
9.
Every command must end with {}
a)
True
b)
False
10.
Running the code is...
a)
when a computer completes a command
b)
Using the instructions the programmer has put in
c)
Both of the above
11.
Programming languages give computers instructions
a)
True
b)
False
12.
An error in a program that prevents the program from running as expected.
a)
Error report
b)
Bug
c)
Mistake
d)
Algorithm
13.
A list of steps to finish a task. A set of instructions that can be performed with or without a computer.
a)
Algorithm
b)
Plan
c)
Binary
d)
Logorithm
14.
An instruction for the computer. Many of these put together make up algorithms and computer programs.
a)
Code
b)
Plan
c)
Program
d)
Command
15.
A field or job in which people use the power of computers to solve big problems.
a)
Coding
b)
Computer Science
c)
Computer Applications
d)
Keyboarding
16.
Statements that only run under certain conditions or situations.
a)
Conditionals
b)
Run Statements
c)
Digital Statements
d)
Command
17.
Finding and fixing errors in programs
a)
Tech support
b)
Decompose
c)
Debugging
d)
Fixing
18.
Which of these is a valid Karel command?
a)
move;
move;
move;
b)
MOVE
c)
move();
d)
move()
19.
What command will place a ball down in a spot?
a)
placeBall();
b)
Putball();
c)
putball():
d)
putBall();
20.
What is a street in a Karel world??
a)
A row.
b)
A column.
c)
A single point.
d)
Karel's position.
21.
What is an avenue in a Karel world ?
a)
A row.
b)
Karel's position.
c)
A column.
d)
A single point.
22.
If Karel is facing North and the code
turnLeft();
turnLeft();
turnLeft();
runs; which direction is Karel facing now? a)
North
b)
East
c)
South
d)
West
23.
In coding terms, the action of doing something over and over again.
a)
Repeating
b)
Repetition
c)
Loop
d)
Do-over
24.
A piece of code that you can easily call over and over again.
a)
Repeat
b)
Functions
c)
Procedures
d)
Fractions
25.
An action that causes something to happen
a)
program
b)
event
c)
binary
d)
digit
26.
A computer programmer's job is to....
a)
Put together the computer and plug it in.
b)
Write computer code that tells a computer what to do.
c)
Play computer games.
27.
How many times should Karel turn left in order to turn right?
a)
1
b)
2
c)
3
d)
4
28.
What can be used to teach Karel to turn right?
a)
Functions
b)
Variables
c)
Dog treats
d)
Karel can already turn right
29.
Loops are used to repeat parts of a program
a)
True
b)
False
30.
If Karel is facing North and the code
turnLeft();
turnLeft();
runs, which direction is Karel facing now?
turnLeft();
turnLeft();
runs, which direction is Karel facing now?
a)
North
b)
South
c)
East
d)
West
Reset
