JavaScript Fun

JavaScript Fun

3rd Grade

9 Qs

quiz-placeholder

Similar activities

jQuery - elementy

jQuery - elementy

KG - 8th Grade

8 Qs

AapLab LC 1

AapLab LC 1

1st - 3rd Grade

12 Qs

Câu điều kiên trong Javascript

Câu điều kiên trong Javascript

3rd Grade

10 Qs

Душим питона

Душим питона

1st - 12th Grade

13 Qs

HTML/HTML5

HTML/HTML5

3rd Grade

10 Qs

EC COUNCIL

EC COUNCIL

1st - 3rd Grade

10 Qs

BWOCD #1

BWOCD #1

1st - 5th Grade

10 Qs

Javascript Exam

Javascript Exam

1st - 3rd Grade

9 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