If a number system has base N, what is the highest digit possible?
Answer: Nā1
Which input type hides the entered characters?
Answer: password
What is the default value of position?
Answer: static
What happens if you access a let variable before declaration?
Answer:
Reference Error (Temporal Dead Zone).
. Why do we use modules in Node.js?
Answer:
To organize code and make it reusable.
. Which number system is most commonly used by programmers to represent memory addresses?
Hexadecimal
Which tag stores machine-readable data?
<meta>
Which CSS property includes padding and border inside the specified width?
Answer: box-sizing: border-box
Why is using var generally discouraged in modern JavaScript?
Answer:
Because of hoisting and lack of block scope.
Why is express.json() necessary?
Answer:
To convert incoming JSON data into JavaScript objects.
Which decimal number is represented by Binary 100000000?
Answer: 256
Which tag improves SEO more: <div> or <article>?
Answer: <article>
Which property centers items vertically and horizontally in Flexbox?
Answer: justify-content + align-items
What problem does a Closure solve in JavaScript?
A closure allows a function to remember and access variables from its outer scope even after the outer function has finished executing.
Why is POST used when creating data?
Answer:
Because it sends data to the server for processing and storage.
Convert Binary 101011110011 to Hexadecimal.
Answer: AF3
Which HTML element is used only once as the page's primary content area?
Answer: <main>
Which CSS unit is relative to the root element and which is relative to its parent element?
Answer:
rem ā Root element
em ā Parent element
What is the difference between map() and forEach()?
map() creates and returns a new array, while forEach() simply executes a function for each element without returning a new array.
Why are HTTP status codes important?
Answer:
They tell the client whether a request succeeded or failed.
Convert Hexadecimal 1A3F to Decimal.
Answer: 6719
Which tag is used to group form fields together?
Answer: <fieldset>
Why does width: 100% sometimes cause horizontal scrolling?
Answer:
Because padding and border are added to the width when using content-box.
Why do we need closures in real-world applications?
They help preserve data, create private variables, and maintain state between function calls.
Why do we use next()?
Answer: To pass control to the next middleware.