JavaScript quiz for beginners
Quiz
•
Computers
•
7th Grade
•
Practice Problem
•
Medium
dionis pascaru
Used 82+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Inside which HTML element do we put the JavaScript?
<scripting>
<js>
<javascript>
<script>
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct JavaScript syntax to change the content of the HTML element below?
<p id="geek">GeeksforGeeks</p>
document.getElement(“geek”).innerHTML=”I am a Geek”;
document.getElementById(“geek”).innerHTML=”I am a Geek”;
document.getId(“geek”)=”I am a Geek”;
document.getElementById(“geek”).innerHTML=I am a Geek;
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is the correct syntax to display “GeeksforGeeks” in an alert box using JavaScript?
alertbox(“GeeksforGeeks”);
msg(“GeeksforGeeks”);
msgbox(“GeeksforGeeks”);
alert(“GeeksforGeeks”);
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the correct syntax for referring to an external script called “geek.js”?
<script src=”geek.js”>
<script href=”geek.js”>
<script ref=”geek.js”>
<script name=”geek.js”>
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
The external JavaScript file must contain <script> tag. True or False?
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Predict the output of the following JavaScript code.
16
Compilation Error
88
Run time Error
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Witch intruction from this create an Loop?
if
while
var
else
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
14 questions
Microsoft Excel Advanced Features
Quiz
•
1st Grade - University
13 questions
python для новичков
Quiz
•
4th - 11th Grade
10 questions
Quiz HTML
Quiz
•
1st - 10th Grade
15 questions
Review Quiz Computer 7 HTML
Quiz
•
7th Grade
10 questions
HTML 4
Quiz
•
7th Grade
10 questions
Tin 6
Quiz
•
6th - 9th Grade
10 questions
T3. C1-C2 Quizizz Post-Test
Quiz
•
7th Grade - University
14 questions
Lists, Subroutines and Sequence in Pseudocode - Python
Quiz
•
1st - 11th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd 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
