JavaScript quiz for beginners

Quiz
•
Computers
•
7th Grade
•
Medium
dionis pascaru
Used 78+ times
FREE Resource
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
Similar Resources on Wayground
15 questions
Algoritma dan Pemrograman

Quiz
•
7th Grade
10 questions
Informatika - Algoritma dan Pemrograman

Quiz
•
7th Grade
15 questions
Scratch Arithmetic Operators

Quiz
•
4th - 7th Grade
14 questions
Cuestionario sobre Lenguajes de Programación

Quiz
•
7th Grade - University
15 questions
The basics of Scratch Programming

Quiz
•
7th Grade
10 questions
scratch quiz

Quiz
•
1st Grade - University
9 questions
Scratch Vocabulary

Quiz
•
3rd Grade - University
10 questions
JavaScript ievads

Quiz
•
7th - 8th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
20 questions
Copyright and Fair Use

Quiz
•
6th - 8th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
21 questions
Input Output Storage Device

Quiz
•
5th - 8th Grade