NEW
Font size
WorksheetsSkills Check: Design Cycle and JavaScript
Total questions: 39
Worksheet time: 24mins
Which command is written correctly?
Move
move
Move();
move();
Which command is written incorrectly?
putBall();
putball();
turnLeft();
takeBall();
This code:
putBall();
move();
putBall();
put 2 balls in the same place and then move one place?
True
False
The code in the picture will move Karel in a square.
True
False
Which code will put Karel in the position shown in second world?
putBall(); putBall(); move(); move();
move(); putBall(); move(); putBall();
putBall(); move(); putBall(); move();
move(); putBall(); putBall(); move();
Which code below will put Karel in the position shown in picture?
move(); Move(); turnLeft(); move();
move; move(); turnLeft; move();
move(); move(); TurnLeft(); Move();
move(); move(); turnLeft(); move();
Is this Function written correctly?
True
False
What is the name of this function?
function
spin()
3 turnLeft();
spin();
How many times should Karel turn left in order to turn right?
1
2
3
4
What can be used to teach Karel to turn right?
Functions
Variables
Dog Treats
Karel can already turn right
How many times should the start function be defined in a program?
0
1
2
However many you like
Karel needs to move forward, then turn left, then move forward, then put down a ball.
move();
turnLeft();
move();
putBall();
move();
turnLeft();
move();
takeBall();
move();
turnLeft();
move();
move();
move();
turnLeft()
move();
putBall()
What is the right way to write the function:
makePancakes (Clue: this pancake will be made by putting 3 balls)
function makePancakes(){
putBall();
putBall();
putBall();
}
function makePancakes()
putBall();
putBall();
putBall();
function makePancakes: {
putBall();
putBall();
putBall();
}
function makePancakes(){
putBall();
}
The box that Karel "lives" in is called a ____.
World
Bubble
School
Doghouse
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
To teach the computer a new command and explain what it should do when receiving that command.
Define a Function
Call a Function
Command
Comment
How many times should the start function be defined in a program?
0
1
2
However many you like
Which of these is a valid Karel command?
move;
MOVE
move();
move()
If Karel is facing South and the code:
turnLeft();
turnLeft();
runs; which direction is Karel facing now?
North
South
East
West
Which line(s) contains the bug?
1 and 3
3 only
5 only
3 and 5
What lines would you replace with the turnRight function?
Lines 4 & 5
Lines 7 - 9
Lines 8 - 10
Lines 4 & 5 and lines 8 - 10
Which code below will put Karel in the position shown in picture?
move(); Move(); turnLeft(); move();
move; move(); turnLeft; move();
move(); move(); TurnLeft(); Move();
move(); move(); turnLeft(); move();
Which code will put Karel in the position shown in second world?
putBall(); putBall(); move(); move();
move(); putBall(); move(); putBall();
putBall(); move(); putBall(); move();
move(); putBall(); putBall(); move();
What is the first step of the Design Cycle?
share
identify the problem
design a solution
research
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?
brainstorm
modify
research
test
When finding the solution to an engineering problem, there is/are usually
only one possible correct solution
many possible correct solutions
a very limited number of possible correct solutions
What is the Design Cycle?
A design process of elimination.
A process used to create a solution to any problem.
A set of steps that you can follow in order to always find the right answer.
What are the four phases of the Design Cycle?
Research, Sketch, Make, Test
Investigate, Plan, Create, Evaluate
Ask, Model, Design, Feedback
Inquiring and Analyzing, Developing Ideas, Creating the Solution, Evaluate
What is an example of something you do in the Evaluating phase?
Build a chair.
Sketch and label a chair design.
Have someone else test your chair and give feedback.
Research existing chair designs.
What is an example of something you do in the Investigate stage?
Make a website..
Sketch and label the pages of your website.
Have someone else test use your website and give feedback.
Look at existing websites for inspiration or ideas.
I can use the Design Cycle to design solutions to problems in my own life.
True
False
