
JavaScript
Quiz
•
Other
•
University
•
Practice Problem
•
Hard
Moses Nyirongo
Used 1+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
You are designing a web page with a script that must dynamically change the content of a paragraph element to display the value returned by the function
randomQuote().
You have created the following code. Line numbers are included for reference only.
A. document.getElementById("tester").value = randomQuote();
B. document.getElementById("tester").title = randomQuote();
C. document.getElementById("tester").innerHTML = randomQuote();
D. document.getElementById("tester").script = randomQuote();
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
You are creating a dynamic HTML page by using JavaScript.
Your page has an image of the sun. When the user’s mouse pointer moves across the image of the sun, the image should change to the image of the moon. When the user’s mouse pointer is no longer over the image should change back to the image of the sun.
You need to write the code for the image swap.
Which two events must you program for? (Choose two.)
onmouseup
onmouseout
A. onmosedown
A. onmouseover
onmouseenter
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You reveiw the following code
var x = 15;
x %=5;
When this code executes, the value of x is 0.
Review the underlined text. If it makes the statement correct, select “No change is needed”. If the statement is incorrect, select the answer choice that makes the statement correct.
No change is need
the value of x is 3
The value of x is 5
The value of x is undefined
4.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
when using a GET request using a form the data length is restricted.
True
False
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
You work as a JavaScript developer for Adventure Works. You are writing a simple script that performs the following actions:
-> Declares and initializes an array
-> Fills the array with 10 random integers
-> Adds every other number starting with the first element
How should you complete the code? (part 1)
var numbers = ___
{}
[]
""
()
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
You work as a JavaScript developer for Adventure Works. You are writing a simple script that performs the following actions:
-> Declares and initializes an array
-> Fills the array with 10 random integers
-> Adds every other number starting with the first element
How should you complete the code?(Part 2 )
for (var i = 0; i < 10; i++){
numbers.___(Math.round(Math.abs(Math.random()*10)));
}
var sum=0;
splice
push
pop
sort
7.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
You work as a JavaScript developer for Adventure Works. You are writing a simple script that performs the following actions:
-> Declares and initializes an array
-> Fills the array with 10 random integers
-> Adds every other number starting with the first element
How should you complete the code?(Part 3 )
for (var j=0; j<10; ___){
J++
j+1
j++
J+1
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?
Similar Resources on Wayground
12 questions
ロジックテスト (Đề kiểm tra năng lực IT)
Quiz
•
University
10 questions
Prime Ministers of India
Quiz
•
1st Grade - University
10 questions
Latest Technology in Modern Hotel
Quiz
•
University
10 questions
Dragon Mania Ledgends Quiz
Quiz
•
1st Grade - Professio...
17 questions
Ecosystem Services
Quiz
•
University
20 questions
UAS Dinamika Kelompok
Quiz
•
University
20 questions
THMM 2
Quiz
•
University
15 questions
Taxation - Introduction to Tax
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
