Basic JavaScript Programming Quiz

Basic JavaScript Programming Quiz

5th Grade

15 Qs

quiz-placeholder

Similar activities

Javascript

Javascript

KG - Professional Development

13 Qs

Основы JS

Основы JS

5th Grade

13 Qs

JavaScript Quiz | For Beginners

JavaScript Quiz | For Beginners

1st Grade - University

10 Qs

Python

Python

KG - Professional Development

13 Qs

Webdev Backend Level 2

Webdev Backend Level 2

5th - 8th Grade

10 Qs

JavaScript: Coerción y Tipos de Datos

JavaScript: Coerción y Tipos de Datos

1st - 10th Grade

10 Qs

Программирование Minecraft. JavaScript. 3

Программирование Minecraft. JavaScript. 3

2nd - 5th Grade

14 Qs

Aimylogic

Aimylogic

5th Grade

10 Qs

Basic JavaScript Programming Quiz

Basic JavaScript Programming Quiz

Assessment

Quiz

Computers

5th Grade

Hard

Created by

Muhammad Nezad

Used 5+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

Which of the following is a correct way to declare a variable in JavaScript?

var myVariable;

variable myVariable;

v myVariable;

declare myVariable;

2.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

What is the correct syntax for referring to an external script called "script.js"?

<script src="script.js"></script>

<script link="script.js"></script>

<script ref="script.js"></script>

<script href="script.js"></script>

3.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

How do you write "Hello World" in an alert box?

alert("Hello World");

msg("Hello World");

alertBox("Hello World");

msgBox("Hello World");

4.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

How do you create a function in JavaScript?

function myFunction() {}

create myFunction() {}

function:myFunction() {}

def myFunction() {}

5.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

How do you call a function named "myFunction"?

call myFunction();

myFunction();

call function myFunction();

execute myFunction();

6.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

How do you write an IF statement in JavaScript?

if i = 5 then

if i == 5 then

if (i == 5)

if i = 5

7.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

How does a WHILE loop start in JavaScript?

while (true){}

while true do

while i < 6:

while true:

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?