Interview Q&A

Master technical and career interviews with structured answers—short definition, real examples, pitfalls, and how to answer in 60–90 seconds.

4608 total questions 4508 technical 100 career & HR 4272 from PDF library

Showing 1676–1700 of 3281

Career & HR topics

By tech stack

Popular tracks

Mid PDF
How does the browser parse and render HTML?

Short answer: When a browser loads a webpage, it goes through these main steps: Real-world example (ShopNest) ShopNest’s browser cart uses modern JavaScript: fetch APIs with async/await, modules, and clear error handling…

JavaScript Read answer
Mid PDF
What are the advantages of using Bootstrap?

Short answer: ✅ Responsive design ✅ Pre-styled components ✅ Cross-browser compatibility ✅ Customizable via variables and themes ✅ Speeds up development Real-world example (ShopNest) ShopNest’s browser cart uses modern Ja…

JavaScript Read answer
Mid PDF
How does the V8 engine work?

Short answer: V8 is Google’s open-source JavaScript engine used in Chrome and Node.js. It: Real-world example (ShopNest) ShopNest’s browser cart uses modern JavaScript: fetch APIs with async/await, modules, and clear err…

JavaScript Read answer
Mid PDF
Non-primitive (Reference):?

Short answer: Object (includes Arrays, Functions, Dates, etc.) Real-world example (ShopNest) ShopNest’s browser cart uses modern JavaScript: fetch APIs with async/await, modules, and clear error handling. Say this in the…

JavaScript Read answer
Mid PDF
How can CSS performance be optimized?

Short answer: ✅ Best Practices: Minimize reflows/repaints by avoiding inline styles or frequent layout changes. Explain a bit more Use transform and opacity for animations (GPU-accelerated). Combine and minify CSS files.…

JavaScript Read answer
Mid PDF
ID selector: Targets an element by unique ID.?

Short answer: #main { width: 80%; } #main { width: 80%; } #main { width: 80%; } #main { width: 80%; } #main { width: 80%; } #main { width: 80%; } #main { width: 80%; } #main { width: 80%; } Real-world example (ShopNest)…

JavaScript Read answer
Mid PDF
External CSS:?

Short answer: <link rel="stylesheet" href="styles.css"> Real-world example (ShopNest) ShopNest’s browser cart uses modern JavaScript: fetch APIs with async/await, modules, and clear error handli…

JavaScript Read answer
Mid PDF
How is CSS added to an HTML document?

Short answer: There are three ways to include CSS: Inline CSS: <p style="color: blue;">Hello!</p> Example code There are three ways to include CSS: Inline CSS: <p style="color: blue;"&g…

JavaScript Read answer
Mid PDF
What are ARIA roles and why are they important?

Short answer: ARIA (Accessible Rich Internet Applications) roles make web content more accessible for users relying on assistive technologies (like screen readers). Example code <button role="switch" aria-ch…

JavaScript Read answer
Mid PDF
Loading CSS & JS:?

Short answer: CSS is parsed into a CSSOM (CSS Object Model). JavaScript may modify the DOM or halt parsing (especially with synchronous scripts). Real-world example (ShopNest) ShopNest’s browser cart uses modern JavaScri…

JavaScript Read answer
Mid PDF
How is JavaScript different from Java?

Short answer: JavaScript is interpreted, runs mainly in browsers. Java is compiled, runs on JVM. Syntax differs, and Java is strongly typed, JS is dynamically typed. Real-world example (ShopNest) ShopNest’s browser cart…

JavaScript Read answer
Mid PDF
Optimizes hot code using TurboFan (JIT compiler) into native machine code.?

Short answer: Follow me on LinkedIn: Real-world example (ShopNest) ShopNest’s browser cart uses modern JavaScript: fetch APIs with async/await, modules, and clear error handling. Say this in the interview Define — one cl…

JavaScript Read answer
Mid PDF
How do you implement dark mode using CSS?

Short answer: Use the prefers-color-scheme media query or toggle themes via classes. Example (automatic via system theme): Follow me on LinkedIn: @media (prefers-color-scheme: dark) { body { background: #121212; color: #…

JavaScript Read answer
Mid PDF
What are the three types of CSS selectors?

Short answer: Element selector: Targets HTML tags. p { color: green; } Element selector: Targets HTML tags. p { color: green; } Element selector: Targets HTML tags. p { color: green; } Element selector: Targets HTML tags…

JavaScript Read answer
Mid PDF
Key Takeaway:?

Short answer: Use classes for reusable styles, IDs for unique elements. Real-world example (ShopNest) ShopNest’s browser cart uses modern JavaScript: fetch APIs with async/await, modules, and clear error handling. Say th…

JavaScript Read answer
Mid PDF
Render Tree Creation:?

Short answer: DOM + CSSOM = Render Tree (a visual structure of elements and styles). Real-world example (ShopNest) ShopNest’s browser cart uses modern JavaScript: fetch APIs with async/await, modules, and clear error han…

JavaScript Read answer
Mid PDF
What are HTML tags and attributes?

Short answer: Tags define the structure and content (e.g., <p>, <h1>, <div>). Attributes provide additional details about an element (e.g., src, href, alt). Follow me on LinkedIn: Example code <img s…

JavaScript Read answer
Mid PDF
What are the different data types in JavaScript?

Short answer: Primitive types: string, number, boolean, null, undefined, symbol, bigint Reference types: object, array, function Example code let name = "Sandeep"; let obj = { age: 30 }; Real-world example (Sho…

JavaScript Read answer
Mid PDF
Garbage collects unused memory.?

Short answer: ✅ Result: lightning-fast execution of JS. Real-world example (ShopNest) ShopNest’s browser cart uses modern JavaScript: fetch APIs with async/await, modules, and clear error handling. Say this in the interv…

JavaScript Read answer
Mid PDF
What are CSS preprocessors (SASS, LESS)?

Short answer: Preprocessors extend CSS with variables, nesting, mixins, and functions, compiled into plain CSS. Example (SASS): $main-color: #3498db; .button { background: $main-color; &:hover { background: darken($m…

JavaScript Read answer
Mid PDF
How can you create a responsive layout with CSS Grid?

Short answer: Use fractional units (fr) and media queries. Example code .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; } Key Takeaway: auto-fit and minmax() automatica…

JavaScript Read answer
Mid PDF
How can you optimize HTML for SEO?

Short answer: SEO optimization starts with clean, structured, and semantic HTML. Best practices: Follow me on LinkedIn: Use meaningful tags (<header>, <article>, <footer>). Add <title>, <meta n…

JavaScript Read answer
Mid PDF
Layout & Painting:?

Short answer: The browser calculates positions (layout) and then paints pixels on the screen. Key Takeaway: The DOM is built first, then styles are applied, and finally pixels are rendered — optimizing this pipeline impr…

JavaScript Read answer
Mid PDF
What are variables in JavaScript?

Short answer: Variables are containers to store data. let age = 25; Variables are containers to store data. Example code let age = 25; Variables are containers to store data. Example: let age = 25; Variables are containe…

JavaScript Read answer
Mid PDF
Explain the concept of promises and async flow.

Short answer: A Promise represents a value that may be available now, later, or never. It helps handle asynchronous operations in a cleaner way. Follow me on LinkedIn: Example code fetch('/data') .then(res => res.json…

JavaScript Read answer

JavaScript JavaScript Tutorial · JavaScript

Short answer: When a browser loads a webpage, it goes through these main steps:

Real-world example (ShopNest)

ShopNest’s browser cart uses modern JavaScript: fetch APIs with async/await, modules, and clear error handling.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

JavaScript JavaScript Tutorial · JavaScript

Short answer: ✅ Responsive design ✅ Pre-styled components ✅ Cross-browser compatibility ✅ Customizable via variables and themes ✅ Speeds up development

Real-world example (ShopNest)

ShopNest’s browser cart uses modern JavaScript: fetch APIs with async/await, modules, and clear error handling.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

JavaScript JavaScript Tutorial · JavaScript

Short answer: V8 is Google’s open-source JavaScript engine used in Chrome and Node.js. It:

Real-world example (ShopNest)

ShopNest’s browser cart uses modern JavaScript: fetch APIs with async/await, modules, and clear error handling.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

JavaScript JavaScript Tutorial · JavaScript

Short answer: Object (includes Arrays, Functions, Dates, etc.)

Real-world example (ShopNest)

ShopNest’s browser cart uses modern JavaScript: fetch APIs with async/await, modules, and clear error handling.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

JavaScript JavaScript Tutorial · JavaScript

Short answer: ✅ Best Practices: Minimize reflows/repaints by avoiding inline styles or frequent layout changes.

Explain a bit more

Use transform and opacity for animations (GPU-accelerated). Combine and minify CSS files. Use specific selectors, not overly complex ones (div ul li a {...} = costly). Avoid large background images or unnecessary CSS rules. Use modern layout methods (Flexbox/Grid) efficiently. Key Takeaway: Efficient CSS = fewer reflows, fewer repaints, and lightweight selectors.

Real-world example (ShopNest)

ShopNest’s browser cart uses modern JavaScript: fetch APIs with async/await, modules, and clear error handling.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

JavaScript JavaScript Tutorial · JavaScript

Short answer: #main { width: 80%; } #main { width: 80%; } #main { width: 80%; } #main { width: 80%; } #main { width: 80%; } #main { width: 80%; } #main { width: 80%; } #main { width: 80%; }

Real-world example (ShopNest)

ShopNest’s browser cart uses modern JavaScript: fetch APIs with async/await, modules, and clear error handling.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

JavaScript JavaScript Tutorial · JavaScript

Short answer: <link rel="stylesheet" href="styles.css">

Real-world example (ShopNest)

ShopNest’s browser cart uses modern JavaScript: fetch APIs with async/await, modules, and clear error handling.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

JavaScript JavaScript Tutorial · JavaScript

Short answer: There are three ways to include CSS: Inline CSS: <p style="color: blue;">Hello!</p>

Example code

There are three ways to include CSS: Inline CSS: <p style="color: blue;">Hello!</p>

Real-world example (ShopNest)

ShopNest’s browser cart uses modern JavaScript: fetch APIs with async/await, modules, and clear error handling.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

JavaScript JavaScript Tutorial · JavaScript

Short answer: ARIA (Accessible Rich Internet Applications) roles make web content more accessible for users relying on assistive technologies (like screen readers).

Example code

<button role="switch" aria-checked="false">Dark Mode</button> role="switch" defines what the element represents. Follow me on LinkedIn: aria-checked communicates the state to assistive devices. Key Takeaway: ARIA makes dynamic interfaces accessible by adding semantic meaning beyond native HTML.

Real-world example (ShopNest)

ShopNest’s browser cart uses modern JavaScript: fetch APIs with async/await, modules, and clear error handling.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

JavaScript JavaScript Tutorial · JavaScript

Short answer: CSS is parsed into a CSSOM (CSS Object Model). JavaScript may modify the DOM or halt parsing (especially with synchronous scripts).

Real-world example (ShopNest)

ShopNest’s browser cart uses modern JavaScript: fetch APIs with async/await, modules, and clear error handling.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

JavaScript JavaScript Tutorial · JavaScript

Short answer: JavaScript is interpreted, runs mainly in browsers. Java is compiled, runs on JVM. Syntax differs, and Java is strongly typed, JS is dynamically typed.

Real-world example (ShopNest)

ShopNest’s browser cart uses modern JavaScript: fetch APIs with async/await, modules, and clear error handling.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

JavaScript JavaScript Tutorial · JavaScript

Short answer: Follow me on LinkedIn:

Real-world example (ShopNest)

ShopNest’s browser cart uses modern JavaScript: fetch APIs with async/await, modules, and clear error handling.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

JavaScript JavaScript Tutorial · JavaScript

Short answer: Use the prefers-color-scheme media query or toggle themes via classes. Example (automatic via system theme): Follow me on LinkedIn: @media (prefers-color-scheme: dark) { body { background: #121212; color: #fff; }

Example code

} Example (manual toggle): body.dark-mode { background: #000; color: white; } Key Takeaway: Dark mode can adapt automatically or via user preference toggles.

Real-world example (ShopNest)

ShopNest’s browser cart uses modern JavaScript: fetch APIs with async/await, modules, and clear error handling.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

JavaScript JavaScript Tutorial · JavaScript

Short answer: Element selector: Targets HTML tags. p { color: green; } Element selector: Targets HTML tags. p { color: green; } Element selector: Targets HTML tags. p { color: green; } Element selector: Targets HTML tags. p { color: green; }

Real-world example (ShopNest)

ShopNest’s browser cart uses modern JavaScript: fetch APIs with async/await, modules, and clear error handling.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

JavaScript JavaScript Tutorial · JavaScript

Short answer: Use classes for reusable styles, IDs for unique elements.

Real-world example (ShopNest)

ShopNest’s browser cart uses modern JavaScript: fetch APIs with async/await, modules, and clear error handling.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

JavaScript JavaScript Tutorial · JavaScript

Short answer: DOM + CSSOM = Render Tree (a visual structure of elements and styles).

Real-world example (ShopNest)

ShopNest’s browser cart uses modern JavaScript: fetch APIs with async/await, modules, and clear error handling.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

JavaScript JavaScript Tutorial · JavaScript

Short answer: Tags define the structure and content (e.g., <p>, <h1>, <div>). Attributes provide additional details about an element (e.g., src, href, alt). Follow me on LinkedIn:

Example code

<img src="logo.png" alt="Company Logo"> Here, <img> is a tag, and src & alt are attributes. Key Takeaway: Tags = structure; Attributes = extra information.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

JavaScript JavaScript Tutorial · JavaScript

Short answer: Primitive types: string, number, boolean, null, undefined, symbol, bigint Reference types: object, array, function

Example code

let name = "Sandeep"; let obj = { age: 30 };

Real-world example (ShopNest)

ShopNest’s browser cart uses modern JavaScript: fetch APIs with async/await, modules, and clear error handling.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

JavaScript JavaScript Tutorial · JavaScript

Short answer: ✅ Result: lightning-fast execution of JS.

Real-world example (ShopNest)

ShopNest’s browser cart uses modern JavaScript: fetch APIs with async/await, modules, and clear error handling.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

JavaScript JavaScript Tutorial · JavaScript

Short answer: Preprocessors extend CSS with variables, nesting, mixins, and functions, compiled into plain CSS. Example (SASS): $main-color: #3498db; .button { background: $main-color; &:hover { background: darken($main-color, 10%); } } Key Takeaway: Preprocessors make CSS more modular, maintainable, and reusable.

Real-world example (ShopNest)

ShopNest’s browser cart uses modern JavaScript: fetch APIs with async/await, modules, and clear error handling.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

JavaScript JavaScript Tutorial · JavaScript

Short answer: Use fractional units (fr) and media queries.

Example code

.container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; } Key Takeaway: auto-fit and minmax() automatically adapt the grid to screen size.

Real-world example (ShopNest)

ShopNest’s browser cart uses modern JavaScript: fetch APIs with async/await, modules, and clear error handling.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

JavaScript JavaScript Tutorial · JavaScript

Short answer: SEO optimization starts with clean, structured, and semantic HTML. Best practices: Follow me on LinkedIn: Use meaningful tags (<header>, <article>, <footer>). Add <title>, <meta name="description">, and proper heading hierarchy (<h1> → <h6>). Use descriptive alt text for images. Ensure mobile-friendly and fast-loading pages. Include internal linking and structured data.

Example code

<meta name="description" content="Learn web development step-by-step with examples."> <h1>HTML Interview Questions</h1> Key Takeaway: SEO-friendly HTML = clear structure + accurate metadata + accessible content.

Real-world example (ShopNest)

ShopNest’s browser cart uses modern JavaScript: fetch APIs with async/await, modules, and clear error handling.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

JavaScript JavaScript Tutorial · JavaScript

Short answer: The browser calculates positions (layout) and then paints pixels on the screen. Key Takeaway: The DOM is built first, then styles are applied, and finally pixels are rendered — optimizing this pipeline improves page performance.

Real-world example (ShopNest)

ShopNest’s browser cart uses modern JavaScript: fetch APIs with async/await, modules, and clear error handling.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

JavaScript JavaScript Tutorial · JavaScript

Short answer: Variables are containers to store data. let age = 25; Variables are containers to store data.

Example code

let age = 25; Variables are containers to store data. Example: let age = 25; Variables are containers to store data. Example: let age = 25;

Real-world example (ShopNest)

In ShopNest’s cart UI, a click handler closes over productId. Use let in loops so each button keeps the correct id.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share

JavaScript JavaScript Tutorial · JavaScript

Short answer: A Promise represents a value that may be available now, later, or never. It helps handle asynchronous operations in a cleaner way. Follow me on LinkedIn:

Example code

fetch('/data') .then(res => res.json()) .then(data => console.log(data)) .catch(err => console.error(err)); ✅ async/await simplifies promise syntax.

Real-world example (ShopNest)

The checkout button uses async/await to call /api/orders, shows a spinner, and catches network errors with a toast.

Say this in the interview

  1. Define — one clear sentence (the short answer above).
  2. Example — relate it to a project like ShopNest or your real work.
  3. Trade-off — when you would not use it.
Permalink & share
Toolliyo Assistant
Ask about tutorials, ebooks, training, pricing, mentor services, and support. I use public site content only—not admin or internal tools.

care@toolliyo.com

Need callback? Share your details