Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Code.org Unit 3

Total questions: 14

Worksheet time: 10mins

Name
Class
Date
1.

Ambiguities in natural language necessitate the creation of a more precise language - a programming language- for controlling computers

a)

True

b)

False

2.

Compared to the number of words in a natural language, the number of defined words in a programming language is very small.

a)

True

b)

False

3.

There are many possible ways to interpret an instruction written in a programming language.

a)

True

b)

False

4.

Which of the following is not true about functions?

a)

Functions are reusable programming abstractions

b)

Functions can reduce complexity of writing and maintaining programs

c)

Functions cannot make calls to other functions within the same program

d)

Once defined, a function can be called many times from different parts of the program.

5.

Which of the following would be a well-named function IF we are following all important naming conventions?

a)

#drawStar()

b)

Drawstar()

c)

DrawStar()

d)

drawStar()

6.

Two functions in a single program can have different names but contain identical code.

a)

True

b)

False

7.

A function can change names over the course of a program

a)

True

b)

False

8.

Which of the following will call the function drawStar?

a)

drawStar;

b)

function drawStar( ){

for (var i = 0; i < 5; i++{

moveForward(100);

turnLeft(36);

}

}

c)

function drawStar;

d)

drawStar( );

9.

To use turtle drawing to form the letters of the word "GAMETIME" you would be better off to write

a)

A loop

b)

Function(s)

10.

To create a turtle drawing of a octagon (eight-sided shape), it would be most efficient to write

a)

A loop

b)

A function

11.

To use turtle drawing to draw 100 tiny dots in a line, it would be best to use

a)

A loop

b)

A function

12.

Using turtle drawing to create a circle of any size at a given point on the screen, it would be best to write

a)

a Loop

b)

a Function

13.

Why are parameters useful when programming?

a)

Parameters change the order of operations within a function.

b)

Parameters help teams of programmers because they define the problems they are trying to solve.

c)

Parameters allow for more flexible, generalized behaviors in functions.

d)

Parameters determine the number of times a function will run.

14.

When programmers work together, what is an example of an abstraction in programming that can promote collaboration?

a)

Team members can rely on one another to explain their code.

b)

Programmers can write functions without needing ot know what they do or how they should work.

c)

Programmers can use functions created by others, relying on the functionality without knowing details of how the function works

d)

In order for programmers to work together, they must be in the same room.