JS Certification

JS Certification

12th Grade

11 Qs

quiz-placeholder

Similar activities

TRẮC NGHIỆM TIN 12 KỲ II

TRẮC NGHIỆM TIN 12 KỲ II

10th - 12th Grade

10 Qs

Hệ Điều Hành Của Máy Tính

Hệ Điều Hành Của Máy Tính

10th Grade - University

10 Qs

3rd week g9 summative

3rd week g9 summative

7th - 12th Grade

15 Qs

tin 10 l11

tin 10 l11

12th Grade

10 Qs

Computer Basics 2 - CESA

Computer Basics 2 - CESA

7th Grade - University

10 Qs

animal crossing quiz

animal crossing quiz

1st - 12th Grade

10 Qs

Mengenal Jendela dan Ikon Microsoft Excel

Mengenal Jendela dan Ikon Microsoft Excel

7th Grade - University

15 Qs

Chapter 2: Input Device

Chapter 2: Input Device

12th Grade - University

12 Qs

JS Certification

JS Certification

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Nixon Lopez

Used 9+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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?

b
c
d
e

window

location

getElementByID

innerHTML

document

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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?

Media Image
Media Image
Media Image

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.

a
b
c
d

toLowerCase

value

innerHTML

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.

 

60

10

40

100

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?

b
c
d

continue

while

break

for

do

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Media Image

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?

Media Image
Media Image
Media Image
Media Image
Media Image

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.

alert
prompt
confirm
window
location

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?

Discover more resources for Computers