Interview practice plan

M

Software Engineer

Microsoft · Hyderabad

EngineeringMid level22 practice questions

Practice content written by LYDJ for interview preparation. These are common questions for this kind of role, not this employer's actual interview questions.

What this role asks for

Skills we found in the job description. The plan below is built around them.

C++C#JavaJavaScriptPythonTypeScriptHTML & CSSReactVue.jsAngular

Sign in to see your gap areas first. We compare this role with the skills on your profile.

0 of 22 questions practised

Answer each one out loud, then tick it. Progress is saved in this browser only.

01Required skill0/3

Java

This role asks for Java.

  • What is the difference between checked and unchecked exceptions, and how do you decide which to throw?

    What good looks like

    Checked for recoverable conditions the caller must handle, unchecked for programming errors. Mention wrapping, not swallowing exceptions, and keeping the cause.

  • When would you use CompletableFuture, a bounded ExecutorService, or virtual threads?

    What good looks like

    Virtual threads for blocking I/O-heavy code, CompletableFuture for composing async steps, bounded pools for CPU-bound work, and the pinning caveats of virtual threads.

  • When are Java streams the wrong choice compared with a plain loop?

    What good looks like

    Readability and debugging trade-offs, checked exceptions inside lambdas, and parallel streams with shared state or the common fork-join pool.

02Required skill0/3

JavaScript

This role asks for JavaScript, HTML & CSS and Vue.js. These JavaScript questions cover the ground they share.

  • Explain the event loop. In what order do setTimeout, a resolved Promise and code after await run?

    What good looks like

    Call stack, microtask queue (promises) drained before the next macrotask (timers), and how await splits a function into a microtask continuation.

  • What is a closure? Give a practical use and a bug closures can cause.

    What good looks like

    A function remembering its lexical scope; uses include private state and factories; classic bug is var in a loop or a stale value captured in a callback.

  • How do you handle errors in async code? What happens to an unhandled promise rejection?

    What good looks like

    try/catch around await, .catch on chains, Promise.allSettled when partial failure is fine, and a global handler for logging unhandled rejections.

03Required skill0/3

Python

This role asks for Python.

  • Explain the GIL and how it affects threading, multiprocessing and asyncio.

    What good looks like

    Threads help I/O-bound work but not CPU-bound Python code; multiprocessing sidesteps the GIL at a memory and IPC cost; asyncio suits many concurrent I/O tasks.

  • Explain decorators. Write one that retries a function with exponential backoff.

    What good looks like

    A function that wraps another, functools.wraps to keep metadata, configurable retries and delays, and only retrying exceptions that are actually transient.

  • A Python data-processing script takes hours. How do you speed it up?

    What good looks like

    Profile first, replace row-by-row loops with vectorised NumPy or pandas operations, process in chunks, then consider multiprocessing or a distributed engine.

04Required skill0/3

TypeScript

This role asks for TypeScript and Angular. These TypeScript questions cover the ground they share.

  • What is the difference between type and interface in TypeScript, and when does it matter?

    What good looks like

    Interfaces can be merged and extended; type aliases handle unions, mapped and conditional types. Pick one convention and be consistent.

  • Explain generics with constraints. Write a typed function that picks a set of keys from an object.

    What good looks like

    Use <T, K extends keyof T> returning Pick<T, K>, and explain how the constraint keeps callers from passing keys that do not exist.

  • What are discriminated unions, and how do they help with exhaustive checks?

    What good looks like

    A shared literal field narrows the type in a switch; assigning the default case to never makes the compiler flag any unhandled variant.

05Required skill0/3

React

This role asks for React.

  • How do you decide between local state, context and a global store in a large app?

    What good looks like

    Keep state as local as possible, use context for low-frequency shared values, a store for complex shared client state, and a data-fetching cache for server state.

  • A list of 10,000 rows is slow to render and scroll. How do you fix it?

    What good looks like

    Measure with the Profiler, virtualise the list, use stable keys and memoised rows, and consider pagination or server-side filtering.

  • How would you build and test a form with validation and async submission?

    What good looks like

    Schema-based validation, clear pending and error states, preventing double submits, and tests that drive the form like a user would.

06Fundamentals0/3

Core programming

This role asks for C++ and C#. We do not have questions specific to these yet, so practise these fundamentals and answer them in that language.

  • Given an array of integers and a target, return the indices of two numbers that add up to the target. Then improve the complexity.

    What good looks like

    Start with the O(n^2) brute force, move to a single pass with a hash map for O(n), and talk through duplicates and the no-answer case before coding.

  • What makes code testable? Show how you would refactor a function to make it easier to test.

    What good looks like

    Separate pure logic from I/O, inject dependencies instead of constructing them inside, and keep functions small with clear inputs and outputs.

  • Walk me through what happens when you type a URL into a browser and press Enter.

    What good looks like

    DNS, TCP and TLS handshakes, the HTTP request, server processing, then parsing, rendering and loading sub-resources. Depth in one area beats a shallow list.

07Every loop0/4

Behavioural

Every interview loop has a behavioural round. At mid level, expect questions on delivering independently, handling ambiguity and working through disagreement. Use the STAR structure.

  • Tell me about a mistake you made at work and what happened next.

    What good looks like

    Own it without blaming others, explain how you contained the impact, and what you changed so it would not happen again.

  • Walk me through a project you are proud of and your specific role in it.

    What good looks like

    Separate "we" from "I". Cover the problem, the decisions you personally made, the trade-offs, and a measurable result.

  • Give an example of when you went beyond your role to fix a problem for your team or a customer.

    What good looks like

    Pick something with real impact, explain why it mattered, and how you involved the owner rather than quietly working around them.

  • What is a goal you set for yourself in the last year, and how did you track it?

    What good looks like

    Pick a measurable goal, describe the system you used to track it, and be honest about where you fell short.

Company research brief: Microsoft

From the roles we track on LYDJ, refreshed daily from the official careers page.

120

open roles

57

added in 30 days

49

in Engineering

Product & SoftwareGCC

Hiring most for

  • Engineering49
  • Other31
  • Data & AI14
  • Operations8

Cities

Hyderabad · 78Bengaluru · 17Mumbai · 7Gurugram · 2Pune · 1
See all 120 roles at Microsoft →

Read before the interview

Questions to ask them

  • ›There are several open Engineering roles at Microsoft right now. How is the team growing, and where does this role fit?
  • ›The company hires in Hyderabad, Bengaluru, Mumbai. How do teams across locations work together day to day?
  • ›How does the team use C++ and C# today, and what would you like to change?
  • ›What does success look like in this role after six months?
  • ›What is the biggest challenge the team is facing this year?

Preparation checklist

0/8 done

Saved in this browser only.

Interview prep: Software Engineer at Microsoft | LYDJ