
Javascript
Authored by Nurfarahhanis Binti Abdul Rashid
Computers
University
Used 48+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
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
INTRODUCCION A LA PROGRAMACION
Quiz
•
6th Grade - University
10 questions
Hyrje në SO
Quiz
•
University
10 questions
Machine Learning (Introduction)
Quiz
•
University
11 questions
Determining System Requirements
Quiz
•
University
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
10 questions
Planning and Implementation of Information Security
Quiz
•
University
10 questions
INTO Artificial Intelligence
Quiz
•
University - Professi...
14 questions
ITF Chapter 1 Computing Devices
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade