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 2201–2225 of 4608

Career & HR topics

By tech stack

Popular tracks

Mid PDF
Custom Attributes in C#?

Short answer: Real Use Cases Validation frameworks Logging metadata Role-based security API documentation metadata Custom Attribute Example [AttributeUsage(AttributeTargets.Property)] public class RequiredAttribute : Att…

Power Questions Read answer
Mid PDF
Abstract Class vs Interface?

Short answer: Interface Meaning Defines capability and behavior contract Use when: Multiple inheritance is required System uses plug-in extensibility Loose coupling is necessary public interface IPayment { void Pay(decim…

Power Questions Read answer
Junior PDF
Abstract Class vs Interface Interface Meaning Defines capability and behavior contract Use when: ● Multiple inheritance is required ● System uses plug-in extensibility ● Loose coupling is necessary public interface IPayment { void Pay(decimal amount); }

Short answer: bstract Class Meaning Provides base behavior with shared implementation Represents IS-A inheritance relationship public abstract class PaymentBase { public void Log() => Console.WriteLine("Payment l…

Power Questions Read answer
Junior PDF
Basic ASP.NET Core REST API?

Short answer: [ApiController] [Route("api/[controller]")] public class EmployeeController : ControllerBase { [HttpGet("{id}")] public IActionResult Get(int id) Example code { return Ok(new { Id = id,…

Power Questions Read answer
Mid PDF
Thread-Safe Singleton?

Short answer: Incorrect (not thread-safe) public class Singleton Example code { private static Singleton _instance; } Correct using double-check locking public sealed class Singleton { private static Singleton _instance;…

Power Questions Read answer
Mid PDF
Bare repository?

Short answer: A Git repository that does not have a working directory, typically used as a central remote repository (e.g., on a server). Say this in the interview Define — one clear sentence (the short answer above). Ex…

Version Control Read answer
Mid PDF
git stash?

Short answer: llowing you to switch branches and come back to them later. Real-world example (ShopNest) ShopNest’s team uses GitHub PRs with reviews and CI checks so broken builds never reach production unnoticed. Say th…

Version Control Read answer
Mid PDF
git stash?

Short answer: Temporarily saves changes that are not ready to be committed, allowing you to switch branches and come back to them later. Real-world example (ShopNest) ShopNest’s team uses GitHub PRs with reviews and CI c…

Version Control Read answer
Mid PDF
Squashing commits?

Short answer: commit, typically done during an interactive rebase. Real-world example (ShopNest) Prefer clear commits: fix(cart): prevent negative quantities instead of update . Say this in the interview Define — one cle…

Version Control Read answer
Mid PDF
Squashing commits?

Short answer: Combining multiple commits into a single, more meaningful commit, typically done during an interactive rebase. Real-world example (ShopNest) Prefer clear commits: fix(cart): prevent negative quantities inst…

Version Control Read answer
Junior PDF
What is origin?

Short answer: The default name for the remote repository from which a project was originally cloned. Real-world example (ShopNest) ShopNest’s team uses GitHub PRs with reviews and CI checks so broken builds never reach p…

Version Control Read answer
Junior PDF
What is HEAD?

Short answer: A pointer to the current commit you are on in your local repository. Real-world example (ShopNest) ShopNest’s team uses GitHub PRs with reviews and CI checks so broken builds never reach production unnotice…

Version Control Read answer
Junior PDF
What is .gitconfig?

Short answer: A configuration file that stores user-specific Git settings (e.g., username, email, aliases). Say this in the interview Define — one clear sentence (the short answer above). Example — relate it to a project…

Version Control Read answer
Junior PDF
What is git diff --cached?

Short answer: Shows changes between the staging area and the last commit. Real-world example (ShopNest) ShopNest’s team uses GitHub PRs with reviews and CI checks so broken builds never reach production unnoticed. Say th…

Version Control Read answer
Junior PDF
What is git log?

Short answer: Displays the commit history of the current branch. Real-world example (ShopNest) ShopNest’s team uses GitHub PRs with reviews and CI checks so broken builds never reach production unnoticed. Say this in the…

Version Control Read answer
Mid PDF
git add -p?

Short answer: Allows you to interactively stage specific parts (hunks) of changes within a file. Real-world example (ShopNest) ShopNest’s team uses GitHub PRs with reviews and CI checks so broken builds never reach produ…

Version Control Read answer
Junior PDF
What is git remote -v?

Short answer: Shows the URLs of the remote repositories associated with your local repo. Real-world example (ShopNest) ShopNest’s team uses GitHub PRs with reviews and CI checks so broken builds never reach production un…

Version Control Read answer
Junior PDF
What is git bisect?

Short answer: performing a binary search on the commit history. Real-world example (ShopNest) ShopNest’s team uses GitHub PRs with reviews and CI checks so broken builds never reach production unnoticed. Say this in the…

Version Control Read answer
Junior PDF
What is git bisect?

Short answer: A command used to find the commit that introduced a bug by performing a binary search on the commit history. Real-world example (ShopNest) ShopNest’s team uses GitHub PRs with reviews and CI checks so broke…

Version Control Read answer
Junior PDF
What is git fsck?

Short answer: Checks the integrity of the Git file system. Real-world example (ShopNest) ShopNest’s team uses GitHub PRs with reviews and CI checks so broken builds never reach production unnoticed. Say this in the inter…

Version Control Read answer
Junior PDF
What is git gc?

Short answer: Cleans up unnecessary files and optimizes the local repository. Real-world example (ShopNest) ShopNest’s team uses GitHub PRs with reviews and CI checks so broken builds never reach production unnoticed. Sa…

Version Control Read answer
Junior PDF
What is a "fast-forward" merge?

Short answer: A merge where the branch being merged can simply be moved forward to the tip of the other branch without creating a new merge commit. Real-world example (ShopNest) Feature work for “UPI payment” lives on fe…

Version Control Read answer
Junior PDF
What is a "fast-forward" merge?

Short answer: simply be moved forward to the tip of the other branch without creating a new merge commit. Real-world example (ShopNest) Feature work for “UPI payment” lives on feature/upi-payment . Open a PR to main ; re…

Version Control Read answer
Junior PDF
What is a "three-way" merge?

Short answer: common ancestor to determine how to combine changes, potentially creating a new merge commit. Long Answers: Real-world example (ShopNest) Feature work for “UPI payment” lives on feature/upi-payment . Open a…

Version Control Read answer
Junior PDF
What is a "three-way" merge?

Short answer: A merge that involves the two branch tips and their common ancestor to determine how to combine changes, potentially creating a new merge commit. Long Answers: Real-world example (ShopNest) Feature work for…

Version Control Read answer

High-Impact Interview Questions Career Preparation · Power Questions

Short answer: Real Use Cases Validation frameworks Logging metadata Role-based security API documentation metadata Custom Attribute Example [AttributeUsage(AttributeTargets.Property)] public class RequiredAttribute : Attribute {} Usage Example public class Employee

Example code

{ [Required] public string Name { get; set; }
} Validation Logic public static void Validate(object obj)
{
var properties = obj.GetType().GetProperties();
foreach (var prop in properties)
{
var isRequired = prop.GetCustomAttributes(typeof(RequiredAttribute), false).Any();
if (isRequired && prop.GetValue(obj) == null) throw new Exception($"{prop.Name} is required"); }
}

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

High-Impact Interview Questions Career Preparation · Power Questions

Short answer: Interface Meaning Defines capability and behavior contract Use when: Multiple inheritance is required System uses plug-in extensibility Loose coupling is necessary public interface IPayment { void Pay(decimal amount); } Abstract Class Meaning Provides base behavior with shared implementation Represents IS-A inheritance relationship public abstract class PaymentBase

Example code

{
public void Log() => Console.WriteLine("Payment logged");
public abstract void Pay(decimal amount);
} Summary Interface = Capability Abstract Class = Shared Base Behavior

Real-world example (ShopNest)

Answer with: definition → one ShopNest-style story → trade-off → how you would verify it in production.

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

High-Impact Interview Questions Career Preparation · Power Questions

Short answer: bstract Class Meaning Provides base behavior with shared implementation Represents IS-A inheritance relationship public abstract class PaymentBase { public void Log() => Console.WriteLine("Payment logged"); public abstract void Pay(decimal amount); } Summary Interface = Capability bstract Class = Shared Base Behavior bstract Class Meaning Provides base… behavior with shared implementation Represents IS-A inheritance…

Explain a bit more

relationship public abstract class PaymentBase { public void Log() => Console.WriteLine("Payment logged"); public abstract void Pay(decimal amount); } Summary Interface = Capability bstract Class = Shared Base Behavior

Real-world example (ShopNest)

Answer with: definition → one ShopNest-style story → trade-off → how you would verify it in production.

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

High-Impact Interview Questions Career Preparation · Power Questions

Short answer: [ApiController] [Route("api/[controller]")] public class EmployeeController : ControllerBase { [HttpGet("{id}")] public IActionResult Get(int id)

Example code

{
return Ok(new { Id = id, Name = "Sandeep" });
}
} Key Characteristics: Lightweight JSON support by default Built-in dependency injection

Real-world example (ShopNest)

Answer with: definition → one ShopNest-style story → trade-off → how you would verify it in production.

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

High-Impact Interview Questions Career Preparation · Power Questions

Short answer: Incorrect (not thread-safe) public class Singleton

Example code

{
private static Singleton _instance;
} Correct using double-check locking public sealed class Singleton
{
private static Singleton _instance;
private static readonly object _lock = new object();
private Singleton() {}
public static Singleton Instance
{ get {
if (_instance == null)
{ lock(_lock) {
if (_instance == null)
_instance = new Singleton();
}
}
return _instance;
}
}
} Best and simplest public sealed class Singleton
{
public static readonly Singleton Instance = new Singleton();
private Singleton(){}
}

Real-world example (ShopNest)

Answer with: definition → one ShopNest-style story → trade-off → how you would verify it in production.

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

Git & GitHub Developer Essentials · Version Control

Short answer: A Git repository that does not have a working directory, typically used as a central remote repository (e.g., on a server).

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

Git & GitHub Developer Essentials · Version Control

Short answer: llowing you to switch branches and come back to them later.

Real-world example (ShopNest)

ShopNest’s team uses GitHub PRs with reviews and CI checks so broken builds never reach production unnoticed.

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

Git & GitHub Developer Essentials · Version Control

Short answer: Temporarily saves changes that are not ready to be committed, allowing you to switch branches and come back to them later.

Real-world example (ShopNest)

ShopNest’s team uses GitHub PRs with reviews and CI checks so broken builds never reach production unnoticed.

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

Git & GitHub Developer Essentials · Version Control

Short answer: commit, typically done during an interactive rebase.

Real-world example (ShopNest)

Prefer clear commits: fix(cart): prevent negative quantities instead of update.

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

Git & GitHub Developer Essentials · Version Control

Short answer: Combining multiple commits into a single, more meaningful commit, typically done during an interactive rebase.

Real-world example (ShopNest)

Prefer clear commits: fix(cart): prevent negative quantities instead of update.

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

Git & GitHub Developer Essentials · Version Control

Short answer: The default name for the remote repository from which a project was originally cloned.

Real-world example (ShopNest)

ShopNest’s team uses GitHub PRs with reviews and CI checks so broken builds never reach production unnoticed.

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

Git & GitHub Developer Essentials · Version Control

Short answer: A pointer to the current commit you are on in your local repository.

Real-world example (ShopNest)

ShopNest’s team uses GitHub PRs with reviews and CI checks so broken builds never reach production unnoticed.

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

Git & GitHub Developer Essentials · Version Control

Short answer: A configuration file that stores user-specific Git settings (e.g., username, email, aliases).

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

Git & GitHub Developer Essentials · Version Control

Short answer: Shows changes between the staging area and the last commit.

Real-world example (ShopNest)

ShopNest’s team uses GitHub PRs with reviews and CI checks so broken builds never reach production unnoticed.

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

Git & GitHub Developer Essentials · Version Control

Short answer: Displays the commit history of the current branch.

Real-world example (ShopNest)

ShopNest’s team uses GitHub PRs with reviews and CI checks so broken builds never reach production unnoticed.

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

Git & GitHub Developer Essentials · Version Control

Short answer: Allows you to interactively stage specific parts (hunks) of changes within a file.

Real-world example (ShopNest)

ShopNest’s team uses GitHub PRs with reviews and CI checks so broken builds never reach production unnoticed.

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

Git & GitHub Developer Essentials · Version Control

Short answer: Shows the URLs of the remote repositories associated with your local repo.

Real-world example (ShopNest)

ShopNest’s team uses GitHub PRs with reviews and CI checks so broken builds never reach production unnoticed.

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

Git & GitHub Developer Essentials · Version Control

Short answer: performing a binary search on the commit history.

Real-world example (ShopNest)

ShopNest’s team uses GitHub PRs with reviews and CI checks so broken builds never reach production unnoticed.

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

Git & GitHub Developer Essentials · Version Control

Short answer: A command used to find the commit that introduced a bug by performing a binary search on the commit history.

Real-world example (ShopNest)

ShopNest’s team uses GitHub PRs with reviews and CI checks so broken builds never reach production unnoticed.

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

Git & GitHub Developer Essentials · Version Control

Short answer: Checks the integrity of the Git file system.

Real-world example (ShopNest)

ShopNest’s team uses GitHub PRs with reviews and CI checks so broken builds never reach production unnoticed.

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

Git & GitHub Developer Essentials · Version Control

Short answer: Cleans up unnecessary files and optimizes the local repository.

Real-world example (ShopNest)

ShopNest’s team uses GitHub PRs with reviews and CI checks so broken builds never reach production unnoticed.

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

Git & GitHub Developer Essentials · Version Control

Short answer: A merge where the branch being merged can simply be moved forward to the tip of the other branch without creating a new merge commit.

Real-world example (ShopNest)

Feature work for “UPI payment” lives on feature/upi-payment. Open a PR to main; resolve conflicts before merge.

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

Git & GitHub Developer Essentials · Version Control

Short answer: simply be moved forward to the tip of the other branch without creating a new merge commit.

Real-world example (ShopNest)

Feature work for “UPI payment” lives on feature/upi-payment. Open a PR to main; resolve conflicts before merge.

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

Git & GitHub Developer Essentials · Version Control

Short answer: common ancestor to determine how to combine changes, potentially creating a new merge commit. Long Answers:

Real-world example (ShopNest)

Feature work for “UPI payment” lives on feature/upi-payment. Open a PR to main; resolve conflicts before merge.

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

Git & GitHub Developer Essentials · Version Control

Short answer: A merge that involves the two branch tips and their common ancestor to determine how to combine changes, potentially creating a new merge commit. Long Answers:

Real-world example (ShopNest)

Feature work for “UPI payment” lives on feature/upi-payment. Open a PR to main; resolve conflicts before merge.

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