Javascript Quiz

Quiz
•
Computers
•
University
•
Hard
shruti keshari
Used 67+ times
FREE Resource
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
Similar Resources on Wayground
30 questions
ASHV 2k23 Quizzing

Quiz
•
University
28 questions
OOPS Live Quiz

Quiz
•
University
30 questions
Computer Programming 2

Quiz
•
University
26 questions
JSON Quiz

Quiz
•
University
25 questions
ict5_mt_w5-6_q2

Quiz
•
12th Grade - University
25 questions
ORDINARIO PROGRAMACION

Quiz
•
University
29 questions
Application Development and Emerging Technologies Quiz 3

Quiz
•
University
25 questions
Pemrograman Web - UNIB

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University