JavaScript quiz for beginners

JavaScript quiz for beginners

7th Grade

10 Qs

quiz-placeholder

Similar activities

Webpage Maker: Setting up and Understanding HTML skeleton

Webpage Maker: Setting up and Understanding HTML skeleton

6th - 8th Grade

12 Qs

JS general concepts - quiz 7th

JS general concepts - quiz 7th

7th Grade

11 Qs

Website Development

Website Development

6th - 12th Grade

14 Qs

Javascript mine

Javascript mine

7th Grade

15 Qs

Computer Quiz

Computer Quiz

7th Grade - University

15 Qs

Coding with NODE.JS

Coding with NODE.JS

6th - 8th Grade

10 Qs

Информатика 11 сынып HTML

Информатика 11 сынып HTML

1st - 12th Grade

10 Qs

JS For Loops

JS For Loops

7th Grade

15 Qs

JavaScript quiz for beginners

JavaScript quiz for beginners

Assessment

Quiz

Computers

7th Grade

Medium

Created by

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

Media Image

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?