JavaScript Fun

Quiz
•
Science, Computers
•
3rd Grade
•
Hard

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
Similar Resources on Wayground
11 questions
JS Basics

Quiz
•
1st - 5th Grade
10 questions
Gaming

Quiz
•
3rd - 4th Grade
10 questions
Grade 3 - Technology vs. Information Technology

Quiz
•
3rd - 8th Grade
10 questions
Digital Devices KS1 KS2 UK

Quiz
•
1st - 5th Grade
10 questions
อุปกรณ์คอมพิวเตอร์

Quiz
•
1st - 5th Grade
10 questions
HTML/HTML5

Quiz
•
3rd Grade
10 questions
Basis Data Kelas XII - Modul 1

Quiz
•
3rd Grade
10 questions
Be4Pspsm21920

Quiz
•
1st - 5th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Science
12 questions
States of Matter

Quiz
•
3rd Grade
20 questions
Force and Motion Vocabulary

Quiz
•
3rd - 5th Grade
10 questions
Exploring Properties of Matter

Interactive video
•
1st - 5th Grade
20 questions
Force and Motion

Quiz
•
3rd - 4th Grade
18 questions
MP1 Science Benchmark

Quiz
•
3rd Grade
20 questions
States of Matter

Quiz
•
3rd - 4th Grade
10 questions
Changing States of Matter

Quiz
•
2nd - 5th Grade
20 questions
Weather and Climate Practice

Quiz
•
1st - 5th Grade