Javascript Quiz
Quiz
•
Computers
•
University
•
Hard
shruti keshari
Used 67+ times
FREE Resource
Enhance your content in a minute
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
25 questions
Aptitude Competition(FY)
Quiz
•
University
25 questions
QUIZ 4
Quiz
•
University
25 questions
Solutions. Test on un5 (Techn, modal perfect,quantifiers)
Quiz
•
9th Grade - University
25 questions
Atividade sobre Modelos de Processo de Software
Quiz
•
University
25 questions
Quiz Bootstrap (Fullstack Praktikum)
Quiz
•
University
25 questions
Struktur Data
Quiz
•
University
25 questions
Module 3 - Security Architecture
Quiz
•
University
25 questions
Algorithms are not magic - AQA A Level Computer Science
Quiz
•
8th Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
Discover more resources for Computers
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
25 questions
Waves-8th Grade Physical Science
Quiz
•
KG - University
41 questions
Unit 8 Key Terms
Quiz
•
11th Grade - University
10 questions
Product & Quotient Derivative Rules
Quiz
•
University
5 questions
How to Calculate Force - Newton's 2nd Law of Motion
Interactive video
•
10th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
