wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

P1 Semester Test Review Fall 2019

Total questions: 53

Worksheet time: 21mins

Name
Class
Date
1.
Binary is 
a)
ones and zeros
b)
code that the computer follows to perform a function
c)
the steps to performing a function
2.

Define Syntax

a)

the punctuation of any coding language

b)

a container for memory

c)

the naming convention for all objects

3.
What is the binary code for 9?
a)
00001001
b)
00001101
c)
00000111
d)
00001010
4.
What is the number that 00000001 represents?
a)
1
b)
2
c)
4
d)
8
5.
a)
The code will run
b)
The code won't run
6.

What is the problem? (if one exists)

a)

function call doesn't match the function

b)

not enough code

c)

Nothing wrong

7.
One Byte is 
a)
8 bits
b)
something you can call over and over again
c)
the steps to solving a problem
8.
What number is 00001111?
a)
16
b)
15
c)
27
d)
4
9.
What is the area that displays the result of the code?
a)
script
b)
canvas
c)
UI
d)
pseudocode
10.
A small piece of code
a)
pseudocode
b)
script
c)
canvas
d)
UI Elements
11.
Function
a)
a small piece of code
b)
a piece of code you can "call" over and over again
c)
User Interface
d)
Event-driven program
12.
Comments are important because
a)
it helps the computer know what to do
b)
it helps a person understand the program better
c)
they interact with the user
13.
UI or user interface is 
a)
how a person interacts with the app
b)
objects, like buttons, images or text boxes
c)
controls, like click, scroll, move mouse
14.
UI Elements are
a)
How a person interacts with the app
b)
Objects, like buttons, images or text boxes
c)
controls, like click, scroll or move mouse
15.
UI Events are
a)
a program designed to run blocks of code or functions in response to an event like a mouse click
b)
controls, like a click, scroll, move mouse
c)
objects, like buttons, images, text boxes
16.

an event driven program is one

a)

a program designed to run blocks of code or functions in response to a specified event like a mouse click

b)

a command that triggers a function when an event occurs

c)

a short program or block of code

17.
x-axis
a)
runs horizontal
b)
runs vertical
18.
Y Axis
a)
runs vertical
b)
runs horizontal
19.

var score = 100 write ("score");

What will the computer write to the canvas?

a)

score

b)

100

c)

score = 100

20.
To Iterate is to
a)
repeat
b)
put in the correct order
c)
write in a mix of English and coding phrases
21.
Sequencing means to 
a)
repeat
b)
put in the correct order
c)
steps to solving a problem
22.
algorithm is
a)
a small piece of code
b)
the steps to solving a problem
c)
the steps a computer follows to perform a function
23.

var lives = 5 write (lives);

What will the computer write to the canvas?

a)

lives

b)

5

c)

lives = 5

24.
What is the binary code for 20?
a)
00001110
b)
00001111
c)
000010100
d)
00001100
25.
What is code?
a)
an app
b)
a set of instructions for the computer
c)
a small piece of code
26.
Define call
a)
using a function
b)
writing the code for a function
c)
a piece of code you can easily use over and over again
27.

What type of box is used to collect user data?

a)

text area

b)

text input

c)

text label

28.
A coding system that uses the digits 0 and 1 to represent a letter or number
a)
Javascript
b)
Binary
c)
Base 10
29.
Sequencing means to 
a)
repeat
b)
put in order
c)
read as code
30.
When naming items, one should name in a particular manner.  Choose the correct name
a)
BasketBall
b)
basketBall
c)
BASKETBALL
d)
buttonOne
31.
What is the term used to describe how items are named?
a)
naming function
b)
camelCase
c)
CAMELCASE
d)
CamelCase
32.
What programming language are we learning?
a)
java
b)
javascript
c)
C
d)
Code
33.
Which one of these is a string?
a)
"score"
b)
score
34.
Define variable
a)
X+5
b)
something we declare that stays the same
c)
a container for memory
35.
What is a string?
a)
a sentence in coding
b)
words that are printed for the coder
c)
words that are printed for the user
36.

What is the purpose of the setText block?

a)

it prints text on the canvas for the user

b)

It prints text on the canvas for the coder

c)

it collects text from the user

37.
What does the = sign mean?
a)
gets
b)
equals equals
c)
the same as
38.
When is the == used?
a)
to create a variable
b)
when using an IF statement
39.

When naming objects, screens, boxes, one should name in a particular manner. Choose the correct name

a)

CATIMAGE

b)

catimage

c)

catImage

d)

Image1

40.

Why is it important to create ids that truely reflect what they hold?

a)

because it is good coding practice

b)

because it makes it easier to code

c)

because it makes it easier to debug code

d)

all of the answers are correct

41.

What punctuation goes at the end of a line of code?

a)

)

b)

}

c)

;

d)

"

42.

When calling (using) a variable, one must be careful to NOT use quote marks around the name.

a)

True

b)

False

43.

When adding a string to a variable, what is the correct format to use? Var noun=plant

a)

"one" + noun

b)

"one + noun"

c)

"one+" noun

44.

When collecting user entered text, one must create a variable to capture that information

a)

True

b)

False

45.

When reseting a text variable, one must set the variable equal to a set of empty quote marks

a)

True

b)

False

46.

When clearing TEXT INPUT from a input box, what is the correct way to place the quote marks?

a)

" "

b)

"

c)

""

d)

"text"

47.

What is the best name for my noun input box?

a)

NounInputBox

b)

nounInputBox

c)

Noun

48.

What is a string?

a)

Words for the user

b)

words for the coder

c)

a container for memory

49.

why is naming objects, screens, and boxes correctly important? Choose all that are correct.

a)

to help with debugging

b)

to make it easier to code

c)

so that the code will run

d)

so that the user understands the code

50.

var place = getText (placeInputbox);

setText (nounTextArea, "I like going to " +place " after school." );

What is missing from the setText line?

a)

quotes around place

b)

the second plus sign

c)

quotes around nounTextArea

51.

Define function

a)

a precise set of instructions for the computer

b)

a piece of code you can call over and over again

c)

a precise sequence of instructions for any problem

52.

Define algorithm

a)

a precise set of steps for any problem

b)

a precise set of instructions for computers to follow

c)

a piece of code you can call over and over again

53.

Which line is incorrect? Use the handout

a)

Line #1

b)

Line #2

c)

Line #3

d)

Line #4