NEW
Font size
WorksheetsJavaScript 1st Quarter Test
Total questions: 25
Worksheet time: 13mins
Which statement will correctly call a JavaScript function?
myFunction()
initiate myFunction()
call myFunction()
var myFunction()
Which JavaScript statement should you use to branch to one of two processes
depending on the result of a test condition?
if...else
break
for
do...while
Which JavaScript code is used to define a function?
define myFunc { return value; }
define myFunc() { }
abra kadabra () { }
function myFunc() { }
Which JavaScript operator indicates assignment? For example, assigning a value to a variable.
==
!
=>
=
What is + ?
What is a - ?
Multiplication
What is == ?
In JavaScript, which of the following items allows you to store user-entered or
developer-defined data and use it more than once?
Operator
Keyword
Concatenation
Variable
Loops in programming start counting from ?
0
1
Any number
Which of these is a loop?
if(x<10)
while(x<10)
var x=10;
text(x,10;10)
Where do the <script></script> tags go in your html document
Within <img> tags
In the <p></p> tags
In the <title>
In the <head> or <body>
Statement lets you ask a question to the program and only run code if the answer is true.
how Statement
Condition
If Statement
Parentheses
Control structure that lets us do either one section of code or another depending on a test.
If Else Statement
Condition
If Statement
Parentheses
The constructs that listen out for the event happening are called __________
event listener
event handler
action handle
functions
In programming, what term is used for the process of troubleshooting and repairing code that does not work properly or at all?
Testing
Compiling
Interpreting
Debugging
Variable names cannot start with numbers.
True
False
