Number System
HTML
CSS
Javascript
Nodejs & Express.js
100

Convert 1023 to Binary, Octal, and Hexadecimal.


Answer:

  • Binary = 1111111111
  • Octal = 1777
  • Hexadecimal = 3FF
100

 Difference between <section> and <article>


Answer:

section

  • Groups related content.

article

  • Independent content that can stand alone.
100

 Difference between Flexbox and Grid


Answer:

Flexbox → One Dimension

display:flex;

Grid → Two Dimensions

display:grid;
100

 What is the DOM?


Answer:
DOM (Document Object Model) is a tree representation of HTML.

100

 What is Express.js?


Answer:
Express.js is a fast and lightweight web framework for Node.js used to build web applications and REST APIs.

200

 Smallest number to add to 78965 to make it divisible by 97.


Answer = 66

200

What is the purpose of <!DOCTYPE html>?

Answer:
It tells the browser that the document uses HTML5.

<!DOCTYPE html>

200

Difference between visibility:hidden and display:none


Answer:

visibility:hidden;

Element hidden but space remains.

display:none;

Element removed from layout.

200

What are Data Attributes?


Answer:

<div data-id="101">
    Product
</div>

Store custom data.

200

 What is Routing?


Answer:
Routing determines how an application responds to client requests

300

Smallest number leaving remainder 5 when divided by 8 and remainder 7 when divided by 10.


Answer = 77

300

What is the difference between Block and Inline Elements?


Answer:

Block Elements

<div>Hello</div>
<p>Paragraph</p>
<h1>Heading</h1>
300

What is z-index?


Answer:

Controls stacking order.

.card{
  position:absolute;
  z-index:100;
}

Higher value appears on top.

300

 What is SEO-friendly HTML?


Answer:

Benefits:

  • Better Google ranking
  • Better accessibility
300

What are HTTP Methods?

Answer:

GET
POST
PUT
PATCH
DELETE


400

 Convert binary 110101101011 to hexadecimal.


Answer = D6B

400

 Difference between div and span?


Answer:

<div>Block Element</div>
<span>Inline Element</span>
400

 What is a Stacking Context?


Answer:
A stacking context determines how elements are layered on the z-axis.

400

 What is the Event Loop?


Answer:
The Event Loop handles asynchronous operations by moving callbacks from queues to the call stack when it becomes empty.

400

Difference between PUT and PATCH?


Answer:

PUT → Replace entire resource.

PATCH → Update specific fields.

500

 Convert binary 111100001111 to hexadecimal


Answer: F0F

500

What is Viewport?


Answer:

<meta name="viewport" content="width=device-width, initial-scale=1.0">

Makes websites responsive on mobile devices.

500

. Explain CSS Grid Auto-Fill vs Auto-Fit.


Answer:

Auto-fill keeps empty columns.

Auto-fit expands columns.

 

500

What is the this Keyword?

Answer:
this refers to the object calling the method.

500

What is the Difference Between app.use() and app.get()?


Answer:

app.use()

Runs for all HTTP methods.

app.get()

Runs only for GET requests.