JavaScript Fun

JavaScript Fun

3rd Grade

9 Qs

quiz-placeholder

Similar activities

rock-stars

rock-stars

1st - 11th Grade

11 Qs

Safer Internet Day 2025: Quiz for 7-11s

Safer Internet Day 2025: Quiz for 7-11s

2nd - 5th Grade

8 Qs

Chromebook Basics

Chromebook Basics

3rd - 4th Grade

10 Qs

OOP SW 1

OOP SW 1

1st - 3rd Grade

7 Qs

Is this an email account?

Is this an email account?

2nd - 5th Grade

10 Qs

ICT Tools

ICT Tools

3rd - 6th Grade

10 Qs

Java Script Podstawy

Java Script Podstawy

1st - 9th Grade

12 Qs

Safer Internet Day 2025 - Scamming

Safer Internet Day 2025 - Scamming

2nd - 5th Grade

8 Qs

JavaScript Fun

JavaScript Fun

Assessment

Quiz

Science, Computers

3rd Grade

Hard

Created by

Ahmad Wahidy

Used 8+ times

FREE Resource

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

Where can we use the < script > tag ?

In the < head > tag

In the < body > tag

Both < head > and < body > tags

none of these

2.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

Variable x has a value of 5. Variable y has a value of 7

how does x < 7 && y > 6 evaluate ?

True

false

typeError

undefined

3.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

JavaScript is case sensitive ?

True

False

case is convention

all are true

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

let name = 'John', age = 20

console.log(`Hi, my name is ${name.toUpperCase()} and I'm ${++age} years old`)

Hi, my name is John and I'm 20 years old

SyntaxError

Hi, my name is JOHN and I'm 20 years old

Hi, my name is JOHN and I'm 21 years old

5.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

which of these is not a logical operator ?

!

&

&&

||

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

let a = false;

console.log (x = a ? "A" : "B")

"B"

"A"

A

B

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

If the value of x is 40, then what is the output of the following program?

(x % 10 == 0) ? console.log(“Divisible by 10”) : console.log(“Not divisible by 10”);

ReferenceError

Not divisible by 10

None of the above

Divisible by 10

8.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

let x = 'tired'

what does the following code evaluate to ?

if (x === 'tired') return true

return false.

true

false

syntax error

undefined

9.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

function getTriangleArea (heigth, base) {

console.log (( (1/2) (heigth x base )))

}

getTriangleArea (4,5)

20

syntaxErorr

undefined

10