Code.Org Computer Science
Principles Unit 4 test questions
and answers 2025
true
(t/f) Variables update line by line.
false
(t/f) Typing "var" before a word only updates a variable.
the last line that is true
What line of an if statement will show in a console.log area?
true
(t/f) A number added to a variable updates it line by line.
true
(t/f) The else statement at the end of an if else only executes if everything else is
false.
name, number, variable
Updating a variable gives the variable a new...?
how many times they are called
How many times do functions execute?
in a declared function
Where should you put lines of code that are repeated in an on event?
false
(t/f) It does not matter in what order lines of code are entered.
the same name as the declared function
What name is used to call a function?
equals
What does == mean in code?
false
(t/f) The most limiting statement should come last in code.
they help eliminate repeated code.
Principles Unit 4 test questions
and answers 2025
true
(t/f) Variables update line by line.
false
(t/f) Typing "var" before a word only updates a variable.
the last line that is true
What line of an if statement will show in a console.log area?
true
(t/f) A number added to a variable updates it line by line.
true
(t/f) The else statement at the end of an if else only executes if everything else is
false.
name, number, variable
Updating a variable gives the variable a new...?
how many times they are called
How many times do functions execute?
in a declared function
Where should you put lines of code that are repeated in an on event?
false
(t/f) It does not matter in what order lines of code are entered.
the same name as the declared function
What name is used to call a function?
equals
What does == mean in code?
false
(t/f) The most limiting statement should come last in code.
they help eliminate repeated code.