You are a creating a web page with a script. The script will insert the window's location inside the page's input element.
How should you complete the code?
JS Certification
Quiz
•
Computers
•
12th Grade
•
Medium
Nixon Lopez
Used 9+ times
FREE Resource
11 questions
Show all answers
1.
LABELLING QUESTION
1 min • 1 pt
You are a creating a web page with a script. The script will insert the window's location inside the page's input element.
How should you complete the code?
location
getElementByID
document
innerHTML
window
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You are creating a web page that requests a username. You need to write a function that retrieves the username from the form.
How should you complete the code?
3.
LABELLING QUESTION
1 min • 1 pt
You are creating a web page that tests a user’s ability to accurately type text. The
validation should be case-insensitive. How should you complete the code?
Toanswer,dragappropriatefunctionstothecorrectlocations.
innerHTML
value
toLowerCase
toLowerCase
4.
REORDER QUESTION
1 min • 1 pt
A JavaScript array is initialized as follows:
var array=[20,40,60,80];
You write the following code to manipulate the array:
array.shift();
array.pop();
array.push(10);
array.unshift(100);
You need to determine the contents of the array.
100
40
60
10
5.
LABELLING QUESTION
1 min • 1 pt
You need to write a loop that will traverse the length of an array to find the value orange. If an array element value is null, the code should immediately go to the next element. When the value is found, the loop should exit.
How should you complete the code?
continue
do
while
for
break
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Your instructor has asked you to implement code that would display a two-
dimensional array of any size inside a <div> tag.
Which three segments should you use to develop the solution?
7.
DROPDOWN QUESTION
1 min • 1 pt
(a) Display a popup box with the specified message with the OK button.
(b) Display a popup box to take the user's input with the OK and Cancel buttons.
(c) Display a popup box with the specified message with OK and Cancel buttons.
13 questions
Arrays in Swift
Quiz
•
10th - 12th Grade
10 questions
Arrays
Quiz
•
10th - 12th Grade
15 questions
2D Arrays
Quiz
•
9th - 12th Grade
15 questions
Basic Python Coding
Quiz
•
11th - 12th Grade
10 questions
Study Guide - More Advanced Java
Quiz
•
11th - 12th Grade
10 questions
Advanced Java Study Guide
Quiz
•
11th - 12th Grade
12 questions
JS Skill #1
Quiz
•
12th Grade
10 questions
Introduction to PHP: Hypertext Preprocessor
Quiz
•
11th - 12th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University