Javascript
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Nurfarahhanis Binti Abdul Rashid
Used 48+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which type of JavaScript language is
Object-oriented
Assembly-language
High-level
Object-based
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is the correct output for the following JavaScript code:
<script>
x = 10;
y = 5;
z = x / y;
document.getElementById("demo").innerHTML = "The value of z is: " + z;
</script>
2
0
5
Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In JavaScript, what is a block of statement?
Conditional block
block that contains a single statement
block that combines a number of statements into a single compound statement
both conditional block and a single statement
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen, if the following JavaScript code is executed?
<script>
alert(5 + 6);
</script>
An error is displayed
The values of count variable are logged or stored in a particular location or storage
Pop up box appear with the value
An exception is thrown
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following is true about Javascript Objects, excepts
Containers for data values
Can be written with or without decimals
can be assigned with multiple values
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the syntax for declaring Javascript array?
var pet = [ "cat", "dog", "bird"]
var pet = [ cat, dog, bird]
var pet = { cat, dog, bird}
var pet = ( cat, dog, bird)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the getElementsByTagName() method ?
return the element by given id value
return the element by given class name
return the element by given tag name
return the element by given name value
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
Already have an account?
Similar Resources on Wayground
10 questions
Hands-on Modul 3
Quiz
•
University
10 questions
Visual Basic 2010
Quiz
•
8th Grade - University
10 questions
CS100||MsWord
Quiz
•
University
11 questions
Types of Mass Media
Quiz
•
10th Grade - Professi...
15 questions
Chapter 8 - Memory Management Strategies
Quiz
•
University
10 questions
Website Usability and UX
Quiz
•
University
10 questions
Quiz - CSE
Quiz
•
University
15 questions
GK Quiz
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University
