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
10 questions
Программирование C#

Quiz
•
1st - 10th Grade
8 questions
JS Talks, Quiz #4

Quiz
•
1st - 12th Grade
10 questions
C# lesson10

Quiz
•
1st - 10th Grade
5 questions
JavaScript: Funciones, Condicionales y Loops

Quiz
•
1st - 10th Grade
10 questions
Quiz HTML

Quiz
•
1st - 10th Grade
13 questions
HTML тегтері

Quiz
•
1st Grade - University
11 questions
Битва программистов

Quiz
•
1st - 5th Grade
10 questions
python math

Quiz
•
1st - 4th Grade
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade