Javascript Quiz

Javascript Quiz

University

30 Qs

quiz-placeholder

Similar activities

Compro. Final 1/64 part1

Compro. Final 1/64 part1

University

25 Qs

TM103 - Ch.1 Quiz

TM103 - Ch.1 Quiz

University

25 Qs

CHFI Module 3 Review

CHFI Module 3 Review

University

25 Qs

Parts of a Computer #2 - Cables and Ports

Parts of a Computer #2 - Cables and Ports

6th Grade - Professional Development

25 Qs

UTS-BD-Okt2023

UTS-BD-Okt2023

University

25 Qs

ITS301-Unit1 OHS Trial Test 2

ITS301-Unit1 OHS Trial Test 2

University

25 Qs

Computer Software Quiz

Computer Software Quiz

University

25 Qs

Unit 1: Post Test: Fundamentals of Computer Systems

Unit 1: Post Test: Fundamentals of Computer Systems

10th Grade - University

25 Qs

Javascript Quiz

Javascript Quiz

Assessment

Quiz

Computers

University

Hard

Created by

shruti keshari

Used 67+ times

FREE Resource

AI

Enhance your content in a minute

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

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the correct way to write a JavaScript array?

var txt = new Array(1:"tim",2:"kim",3:"jim")

var txt = new Array:1=("tim")2=("kim")3=("jim")

var txt = new Array("tim","kim","jim")

var txt = new Array="tim","kim","jim"

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax for referring to an external script called " abc.js"?

<script href=" abc.js">

<script name=" abc.js">

<script src=" abc.js">

None of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct JavaScript syntax to write "Hello World"?

System.out.println("Hello World")

println ("Hello World")

document.write("Hello World")

response.write("Hello World")

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does JavaScript store dates in a date object?

The number of milliseconds since January 1st, 1970

The number of days since January 1st, 1900

The number of seconds since Netscape's public stock offering.

None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid JavaScript variable name?

2names

_first_and_last_names

FirstAndLast

None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following can't be done with client-side JavaScript?

Validating a form

Sending a form's contents by email

Storing the form's contents to a database file on the server

None of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to create a Date object in JavaScript?

dateObjectName = new Date([parameters])

dateObjectName.new Date([parameters])

dateObjectName := new Date([parameters])

dateObjectName Date([parameters])

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?