Font size
WorksheetsP1 Semester Test Review Fall 2019
Total questions: 53
Worksheet time: 21mins
Define Syntax
the punctuation of any coding language
a container for memory
the naming convention for all objects
What is the problem? (if one exists)
function call doesn't match the function
not enough code
Nothing wrong
an event driven program is one
a program designed to run blocks of code or functions in response to a specified event like a mouse click
a command that triggers a function when an event occurs
a short program or block of code
var score = 100 write ("score");
What will the computer write to the canvas?
score
100
score = 100
var lives = 5 write (lives);
What will the computer write to the canvas?
lives
5
lives = 5
What type of box is used to collect user data?
text area
text input
text label
What is the purpose of the setText block?
it prints text on the canvas for the user
It prints text on the canvas for the coder
it collects text from the user
When naming objects, screens, boxes, one should name in a particular manner. Choose the correct name
CATIMAGE
catimage
catImage
Image1
Why is it important to create ids that truely reflect what they hold?
because it is good coding practice
because it makes it easier to code
because it makes it easier to debug code
all of the answers are correct
What punctuation goes at the end of a line of code?
)
}
;
"
When calling (using) a variable, one must be careful to NOT use quote marks around the name.
True
False
When adding a string to a variable, what is the correct format to use? Var noun=plant
"one" + noun
"one + noun"
"one+" noun
When collecting user entered text, one must create a variable to capture that information
True
False
When reseting a text variable, one must set the variable equal to a set of empty quote marks
True
False
When clearing TEXT INPUT from a input box, what is the correct way to place the quote marks?
" "
"
""
"text"
What is the best name for my noun input box?
NounInputBox
nounInputBox
Noun
What is a string?
Words for the user
words for the coder
a container for memory
why is naming objects, screens, and boxes correctly important? Choose all that are correct.
to help with debugging
to make it easier to code
so that the code will run
so that the user understands the code
var place = getText (placeInputbox);
setText (nounTextArea, "I like going to " +place " after school." );
What is missing from the setText line?
quotes around place
the second plus sign
quotes around nounTextArea
Define function
a precise set of instructions for the computer
a piece of code you can call over and over again
a precise sequence of instructions for any problem
Define algorithm
a precise set of steps for any problem
a precise set of instructions for computers to follow
a piece of code you can call over and over again
Which line is incorrect? Use the handout
Line #1
Line #2
Line #3
Line #4
