Hackharbor 3.0 Day 4:Tech

Quiz
•
Engineering
•
University
•
Hard
Vivek N
Used 6+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement below accurately describes JavaScriptʼs typing system?
JavaScript requires explicit data type declaration for every variable
JavaScript is statically typed like C
JavaScript is dynamically typed and infers the data type at runtime
JavaScript cannot change a variableʼs type once assigned
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Whatʼs the difference between null and undefined in JavaScript?
Both mean the same: variable has no value
null means variable is declared but empty, undefined means variable does not exist
undefined means variable is declared but not assigned; null is an assigned “empty” value
None, they are interchangeable
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen if you omit semicolons at the end of statements in JavaScript?
JavaScript inserts them automatically in most cases
The script will never run
It causes syntax errors every time
The browser ignores the whole script
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of these is the recommended way to attach multiple event listeners to the same button?
Use multiple onclick attributes on button element
Use inline onclick plus .addEventListener()
Use .addEventListener() multiple times on the button element
Overwrite the buttonʼs .onclick property multiple times
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why did JavaScript go to therapy?
Because it had too many types of issues: null, undefined, and mixed feelings about == vs ===!
To learn Python
Because it couldnʼt decide if it wanted to be static or dynamic
It wanted a break from browsers
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you place a