
JWD JS Test Bank 1-10
Authored by Lazaro Alsina
Computers
Professional Development
Used 34+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
1. With JavaScript, which of the following is true if x and y are not equal?
if x!=y
if (x!=y)
if x not=y
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
2. With JavaScript, the first control statement in a for loop usually does what?
sets the termination condition
increments a counter
creates a control variable
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
3. What is the correct JavaScript syntax to change the content of the HTML element below? <p id="demo">This is a demonstration</p>
document.getElementByName("p").innerHTML = "Hello World";
document.getElementById("demo").innerHTML = "Hello World";
document.getElement("p").innerHTML = "Hello World";
#demo.innerHTML = "Hello World";
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
4. How many buttons are there in a JavaScript alert box?
one
two
none
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
5. Which event is triggered when a form field is changed?
onsubmit
onblur
onclick
onchange
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
6. With JavaScript, look at the following code: var x="Anna"; var y=30; x=y; Variable 'x' now contains?
a text
a number
a boolean
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
7. With JavaScript, how do you round the number 7.25 to the nearest integer?
Math.round(7.25)
Math.floor(7.25)
Math.ceil(7.25)
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?