wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Skills Check: Design Cycle and JavaScript

Total questions: 39

Worksheet time: 24mins

Name
Class
Date
1.

Which command is written correctly?

a)

Move

b)

move

c)

Move();

d)

move();

2.

Which command is written incorrectly?

a)

putBall();

b)

putball();

c)

turnLeft();

d)

takeBall();

3.

This code:

putBall();

move();

putBall();

put 2 balls in the same place and then move one place?

a)

True

b)

False

4.

The code in the picture will move Karel in a square.

a)

True

b)

False

5.

Which code will put Karel in the position shown in second world?

a)

putBall(); putBall(); move(); move();

b)

move(); putBall(); move(); putBall();

c)

putBall(); move(); putBall(); move();

d)

move(); putBall(); putBall(); move();

6.

Which code below will put Karel in the position shown in picture?

a)

move(); Move(); turnLeft(); move();

b)

move; move(); turnLeft; move();

c)

move(); move(); TurnLeft(); Move();

d)

move(); move(); turnLeft(); move();

7.

Is this Function written correctly?

a)

True

b)

False

8.

What is the name of this function?

a)

function

b)

spin()

c)

3 turnLeft();

d)

spin();

9.

How many times should Karel turn left in order to turn right?

a)

1

b)

2

c)

3

d)

4

10.

What can be used to teach Karel to turn right?

a)

Functions

b)

Variables

c)

Dog Treats

d)

Karel can already turn right

11.

How many times should the start function be defined in a program?

a)

0

b)

1

c)

2

d)

However many you like

12.

Karel needs to move forward, then turn left, then move forward, then put down a ball.

a)

move();

turnLeft();

move();

putBall();

b)

move();

turnLeft();

move();

takeBall();

c)

move();

turnLeft();

move();

move();

d)

move();

turnLeft()

move();

putBall()

13.

What is the right way to write the function:

makePancakes (Clue: this pancake will be made by putting 3 balls)

a)

function makePancakes(){

putBall();

putBall();

putBall();

}

b)

function makePancakes()

putBall();

putBall();

putBall();

c)

function makePancakes: {

putBall();

putBall();

putBall();

}

d)

function makePancakes(){

putBall();

}

14.

The box that Karel "lives" in is called a ____.

a)

World

b)

Bubble

c)

School

d)

Doghouse

15.

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

16.

To teach the computer a new command and explain what it should do when receiving that command.

a)

Define a Function

b)

Call a Function

c)

Command

d)

Comment

17.

How many times should the start function be defined in a program?

a)

0

b)

1

c)

2

d)

However many you like

18.

Which of these is a valid Karel command?

a)

move;

b)

MOVE

c)

move();

d)

move()

19.

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

20.
Which of the following is incorrect?
a)
putBall();
b)
Takeball();
c)
move();
d)
turnLeft();
21.
Karel's world is made up of streets and ______
a)
Boulevards
b)
Alleys
c)
Avenues
d)
Dead Ends
22.
An error in a program that prevents the program from running as expected.
a)
Error report
b)
Bug
c)
Mistake
d)
Algorithm
23.
Finding and fixing errors in programs
a)
Tech support
b)
Decompose
c)
Debugging
d)
Fixing
24.
What is a street in a Karel world??
a)
A row.
b)
A column.
c)
A single point.
d)
Karel's position.
25.
What is an avenue in a Karel world ?
a)
A row.
b)
Karel's position.
c)
A column.
d)
A single point. 
26.

Which line(s) contains the bug?

a)

1 and 3

b)

3 only

c)

5 only

d)

3 and 5

27.

What lines would you replace with the turnRight function?

a)

Lines 4 & 5

b)

Lines 7 - 9

c)

Lines 8 - 10

d)

Lines 4 & 5 and lines 8 - 10

28.

Which code below will put Karel in the position shown in picture?

a)

move(); Move(); turnLeft(); move();

b)

move; move(); turnLeft; move();

c)

move(); move(); TurnLeft(); Move();

d)

move(); move(); turnLeft(); move();

29.

Which code will put Karel in the position shown in second world?

a)

putBall(); putBall(); move(); move();

b)

move(); putBall(); move(); putBall();

c)

putBall(); move(); putBall(); move();

d)

move(); putBall(); putBall(); move();

30.
In what phase do you explain and justify the need for a solution (what you need to research)?
a)
a. Inquiring  & Analyzing
b)
b. Developing ideas
c)
c. Creating the solution
d)
d. Evaluating
31.
In what phase do you develop a list of success criteria for the solution (requirements)?
a)
a. Inquiring  & Analyzing
b)
b. Developing ideas
c)
c. Creating the solution
d)
d. Evaluating
32.

What is the first step of the Design Cycle?

a)

share

b)

identify the problem

c)

design a solution

d)

research

33.

An engineer has designed and built a prototype to improve the brake system of a car. What is the next step that the engineer should take in the process?

a)

brainstorm

b)

modify

c)

research

d)

test

34.

When finding the solution to an engineering problem, there is/are usually

a)

only one possible correct solution

b)

many possible correct solutions

c)

a very limited number of possible correct solutions

35.

What is the Design Cycle?

a)

A design process of elimination.

b)

A process used to create a solution to any problem.

c)

A set of steps that you can follow in order to always find the right answer.

36.

What are the four phases of the Design Cycle?

a)

Research, Sketch, Make, Test

b)

Investigate, Plan, Create, Evaluate

c)

Ask, Model, Design, Feedback

d)

Inquiring and Analyzing, Developing Ideas, Creating the Solution, Evaluate

37.

What is an example of something you do in the Evaluating phase?

a)

Build a chair.

b)

Sketch and label a chair design.

c)

Have someone else test your chair and give feedback.

d)

Research existing chair designs.

38.

What is an example of something you do in the Investigate stage?

a)

Make a website..

b)

Sketch and label the pages of your website.

c)

Have someone else test use your website and give feedback.

d)

Look at existing websites for inspiration or ideas.

39.

I can use the Design Cycle to design solutions to problems in my own life.

a)

True

b)

False