Inside which HTML element do we put the JavaScript?
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
<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 Quizizz
15 questions
Snake Game

Quiz
•
3rd - 8th Grade
13 questions
JavaScript Variables

Quiz
•
3rd Grade - University
10 questions
SDA Review Questions 21 - 30

Quiz
•
7th Grade
15 questions
Scratch Programming

Quiz
•
5th - 9th Grade
8 questions
EVALUACIÓN SOBRE PROGRAMACION

Quiz
•
3rd Grade - University
10 questions
HTML Introduction

Quiz
•
3rd Grade - Professio...
15 questions
JS Talks, Quiz #5

Quiz
•
1st - 12th Grade
15 questions
HTML and CSS

Quiz
•
7th - 8th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
11 questions
Decimal/fraction conversions quick check

Quiz
•
5th - 7th Grade
10 questions
Identifying equations

Quiz
•
KG - University
44 questions
El fin del año- 7th

Quiz
•
7th - 12th Grade
20 questions
Math Review

Quiz
•
7th Grade
14 questions
Subtracting Integers

Lesson
•
6th - 8th Grade
15 questions
Exponent Properties

Quiz
•
7th - 9th Grade