
JavaScript quiz for beginners
Authored by dionis pascaru
Computers
7th Grade
Used 82+ 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
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
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
13 questions
Intro to IF statements
Quiz
•
KG - University
7 questions
CSS Rules Quiz-unit 4 CodeHS
Quiz
•
7th Grade - University
15 questions
HTML review
Quiz
•
7th - 8th Grade
10 questions
code.org Unit 2 Lesson 2 Intro to HTML Quiz 1
Quiz
•
7th Grade
15 questions
coding
Quiz
•
KG - Professional Dev...
15 questions
Coding Quiz
Quiz
•
6th - 10th Grade
10 questions
Python. Урок-01. Знакомство
Quiz
•
6th - 7th Grade
10 questions
Bài tập Logo
Quiz
•
1st - 12th Grade
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