Javascript

Quiz
•
Computers
•
University
•
Medium

Nurfarahhanis Binti Abdul Rashid
Used 46+ times
FREE Resource
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
Similar Resources on Wayground
10 questions
Programming Knowledge Quiz (Medium)

Quiz
•
5th Grade - Professio...
10 questions
Web Development Workshop

Quiz
•
University - Professi...
15 questions
JavaScript basics

Quiz
•
8th Grade - University
12 questions
HTML, JAVASCRIPT,XML

Quiz
•
University
10 questions
Web Programming Quiz 1

Quiz
•
University
10 questions
Apps Script Quiz - Day 1 Lesson

Quiz
•
University
10 questions
java script

Quiz
•
University
14 questions
JavaScript

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade