Interview practice plan
Software Engineer
Microsoft · Hyderabad
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.
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.
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 likeHide hint
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 likeHide hint
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 likeHide hint
Readability and debugging trade-offs, checked exceptions inside lambdas, and parallel streams with shared state or the common fork-join pool.
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 likeHide hint
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 likeHide hint
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 likeHide hint
try/catch around await, .catch on chains, Promise.allSettled when partial failure is fine, and a global handler for logging unhandled rejections.
Python
This role asks for Python.
Explain the GIL and how it affects threading, multiprocessing and asyncio.
What good looks likeHide hint
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 likeHide hint
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 likeHide hint
Profile first, replace row-by-row loops with vectorised NumPy or pandas operations, process in chunks, then consider multiprocessing or a distributed engine.
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 likeHide hint
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 likeHide hint
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 likeHide hint
A shared literal field narrows the type in a switch; assigning the default case to never makes the compiler flag any unhandled variant.
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 likeHide hint
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 likeHide hint
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 likeHide hint
Schema-based validation, clear pending and error states, preventing double submits, and tests that drive the form like a user would.
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 likeHide hint
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 likeHide hint
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 likeHide hint
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.
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 likeHide hint
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 likeHide hint
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 likeHide hint
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 likeHide hint
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
Hiring most for
- Engineering49
- Other31
- Data & AI14
- Operations8
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 doneSaved in this browser only.