Interview Questions (per language/CS subject) Tutorial
Learn Interview Questions (per language/CS subject) step by step: 77 lessons in 13 chapters with examples, quizzes, diagrams and projects.
Start learning →
of lessons completed
How Interviews Work
- How Technical Interviews Work Learn the stages of a software interview loop, what interviewers actually score, the main question types, and how this track helps you prepare for each.
- A Framework for Answering Any Question Use a five-step structure, clarify, define, example, trade-offs, pitfalls, to give clear, complete answers to concept questions in technical interviews.
- Thinking Out Loud and Handling Hints Learn how to narrate your reasoning, test assumptions, recover from a blank mind and ask for hints in a coding interview without losing points.
- Building a Study Plan and Practice Routine Build an interview study plan with spaced repetition, mock interviews and a weak-topic tracker, then run a small spaced-repetition scheduler yourself.
JavaScript Interview Questions
- JavaScript: Types, Coercion and Equality Prepare for JavaScript interview questions on primitives, typeof quirks, == versus ===, truthy and falsy values, NaN and Object.is, with runnable examples.
- JavaScript: Scope, Hoisting and Closures Answer JavaScript interview questions on var, let and const, the temporal dead zone, hoisting, closures in loops and the module pattern with runnable code.
- JavaScript: this, Prototypes and Classes Answer the classic JavaScript interview questions on this binding, call/apply/bind, the prototype chain, class syntax and private fields, with runnable examples.
- JavaScript: Promises, async/await and the Event Loop Predict output order with microtasks and macrotasks, handle promise errors, and compare Promise.all, allSettled, race and any, with runnable interview examples.
- JavaScript: Arrays, Objects and Functional Patterns Prepare for JavaScript interviews on map, filter, reduce, immutability, shallow vs deep copy, debounce, throttle and currying, with runnable examples.
- JavaScript: Classic Coding Questions Write the classic JavaScript interview helpers from scratch: flatten, deep clone, memoize, a Promise.all polyfill and an event emitter, with tests you can run.
Python Interview Questions
- Python: Mutability, Identity and the Data Model Answer Python interview questions on is vs ==, mutable default arguments, shallow vs deep copy, hashability and dunder methods, with runnable examples.
- Python: Iterators, Generators and Comprehensions Explain the iterator protocol, yield, lazy evaluation and comprehension pitfalls in Python interviews, with runnable examples and clear short answers.
- Python: Decorators, Closures and Context Managers Answer Python interview questions on closures, decorator internals, functools.wraps, late binding in loops and the with statement, with runnable code.
- Python: OOP, MRO and the GIL Prepare Python interview answers on inheritance, MRO and super(), dataclasses, the GIL, and when to choose threads, processes or asyncio, with runnable code.
- Python: Walrus, match, Exception Groups, Pickling and Typing Answer modern Python interview questions on the walrus operator, structural pattern matching, exception groups, pickling and its risks, and type hints with generics.
- Python: Classic Coding Questions Solve classic Python interview problems: anagrams, two-sum, LRU cache, flatten, Counter tricks, plus the time complexity of built-in operations.
- Django and Flask: Request Cycle, ORM, Middleware and Hooks Prepare Django and Flask interviews: the request cycle, middleware, the ORM and the N+1 problem, Flask hooks and contexts, and when to pick which framework.
Java Interview Questions
- Java: OOP, Strings and the Object Contract Answer Java interview questions on equals and hashCode, immutability, the String pool, interfaces vs abstract classes and records, with runnable stand-ins.
- Java: Collections and HashMap Internals Prepare Java interview answers on ArrayList vs LinkedList, how HashMap buckets and resizes, ConcurrentHashMap and fail-fast iterators, with a runnable model.
- Java: JVM, Memory Model and Garbage Collection Answer Java interview questions on heap vs stack, garbage collection generations, class loading, volatile and happens-before, with a mark-and-sweep model.
- Java: Concurrency, Streams and Modern Java Prepare Java interview answers on synchronized, executors, CompletableFuture, lazy streams, virtual threads and sealed types, with runnable stand-ins.
- Spring and Spring Boot: IoC, Beans, Auto-Configuration and JPA Answer Spring Boot interview questions on IoC, bean scopes, auto-configuration, @Transactional proxies and JPA, with runnable stand-ins in plain Java.
C, C++ and Systems Interview Questions
- C and C++: Pointers, Memory and Undefined Behavior Answer C and C++ interview questions on stack versus heap, pointer arithmetic, dangling pointers, memory leaks and undefined behavior, with a memory simulator.
- C++: RAII, Smart Pointers and Move Semantics Prepare C++ interview answers on RAII, the rule of five, unique_ptr and shared_ptr, move versus copy, and virtual functions with a vtable model.
- Operating Systems: Processes, Threads and Deadlocks Answer operating systems interview questions on scheduling, context switches, mutex versus semaphore, deadlock conditions and paging with runnable simulators.
- Operating Systems: PCB, Process States, IPC, Pipes and Zombies Answer operating system interview questions on the PCB, process states, the dispatcher, pipes, shared memory, signals and zombies with real C and runnable scheduling.
- Go and Rust: Concurrency, Ownership and Error Handling Prepare Go and Rust interviews: goroutines, channels, mutexes, nil interfaces, ownership, borrowing, lifetimes, Option and Result, with runnable programs.
- C# and .NET: CLR, Value Types, LINQ, async and Garbage Collection Prepare C# and .NET interviews: the CLR and JIT, value versus reference types, boxing, LINQ deferred execution, async/await, IDisposable and garbage collection.
Web and Frontend Interview Questions
- HTML and CSS Interview Questions Prepare HTML and CSS interview answers on semantics, accessibility, the box model, specificity, flexbox versus grid and stacking contexts with live demos.
- Browser, HTTP and Networking Questions Prepare answers for what happens when you type a URL, HTTP methods and caching, HTTPS, CORS and cookies versus storage, with runnable stand-ins.
- React Interview Questions Prepare for React interviews: virtual DOM, reconciliation, rules of hooks, useEffect pitfalls, keys, state versus props and memoization, with stand-ins you can run.
- React: Redux, Redux Toolkit, Thunks and Context Answer Redux interview questions: store, reducers, middleware, thunks, selectors, Redux Toolkit and when Context is enough, with runnable stand-ins.
- Node.js and Backend Interview Questions Practice Node.js and backend interview questions: event loop phases, streams and backpressure, clustering, REST design, authentication and idempotency, with runnable code.
- TypeScript Interview Questions Prepare for TypeScript interviews: structural typing, generics, unknown versus any, type narrowing and utility types, with read-only types and runnable stand-ins.
- Angular and Vue: Components, Reactivity and Change Detection Prepare Angular and Vue interviews: components, Vue reactivity, Angular change detection and signals, RxJS and lifecycle hooks, with runnable stand-ins.
- Android and iOS: Lifecycle, Memory and Architecture Questions Prepare Android and iOS interviews: activity lifecycle and ViewModel, ARC and retain cycles, threading, Compose and SwiftUI state, MVVM, with runnable stand-ins.
Databases and Data Interview Questions
- SQL: Query-Writing Interview Questions Solve the SQL query problems interviewers love: joins, GROUP BY and HAVING, second-highest salary, duplicates, gaps and window functions, all runnable.
- Databases: Indexes, Normalization and Transactions Answer database design interview questions: how B-tree indexes and query plans work, normalization, ACID transactions, isolation levels and deadlocks.
- DBMS Concepts: ER Model, Keys, Normal Forms and Schedules Prepare DBMS theory interviews: ER diagrams to tables, keys, functional dependencies, BCNF, serializable schedules, two-phase locking and write-ahead logging.
- Databases: NoSQL, Caching and Scaling Prepare NoSQL and scaling interview answers: CAP theorem, replication, sharding, cache-aside versus write-through, eviction policies and quorums, with runnable models.
- Data Science and pandas Interview Questions Prepare for data interviews: pandas groupby, merge types, missing data, bias vs variance and evaluation metrics like precision and recall, with runnable code.
- Machine Learning: Regularization, Validation, Leakage and Ensembles Prepare machine learning interviews: L1 and L2 regularization, cross-validation, data leakage, gradient descent, bagging versus boosting, all run for real.
CS Fundamentals Interview Questions
- Complexity and Data Structure Questions Answer Big O and data structure interview questions: arrays vs linked lists, hash tables, heaps and trees, with Python code you can run and measure.
- Array and String Patterns Learn the four array and string patterns behind most interview problems: two pointers, sliding window, prefix sums and hash-map counting, with Python.
- Sorting and Searching Catalog: Shell, Counting, Radix, Bucket, Ternary and Fibonacci Compare Shell, counting, radix, bucket, ternary and Fibonacci search with runnable Python, a complexity and stability table, and answers to common follow-ups.
- Trees and Graphs Questions Practice tree and graph interview questions: traversals, BST validation, lowest common ancestor, BFS, DFS, topological sort and shortest paths in Python.
- Recursion and Dynamic Programming Questions Master recursion and dynamic programming interview questions: memoization, knapsack, longest increasing subsequence, edit distance and backtracking in Python.
- Bit Manipulation, Greedy and Backtracking Question Patterns Learn the bit tricks, greedy proofs and backtracking templates behind common coding interview questions, with Python programs that verify each answer.
- OOP, SOLID and Design Patterns Questions Answer OOP interview questions with confidence: the four pillars, SOLID principles and the singleton, factory, observer and strategy patterns in JavaScript.
- Security and Cryptography Questions Answer security interview questions with confidence: hashing vs encryption, password storage, JWT, XSS, CSRF and SQL injection, with runnable Node examples.
- Computer Networks: OSI, TCP, DNS and Subnetting Answer networking interview questions: OSI versus TCP/IP, TCP handshake and teardown, TCP versus UDP, congestion control, DNS, NAT and subnet calculations.
- Interview Puzzles and Brain Teasers Solve classic interview puzzles: two eggs, bridge crossing, water jugs, weighing, Monty Hall, the birthday paradox and Fermi estimates, verified in code.
DevOps, Tools and System Design
- Git and Linux Interview Questions Prepare Git and Linux interview questions: merge vs rebase, reset vs revert, cherry-pick, file permissions, processes and pipes, with a runnable commit-graph model.
- Docker, CI/CD and Cloud Questions Answer Docker, CI/CD, deployment and Kubernetes interview questions: images vs containers, layers and caching, Compose, pipelines, rollouts and reconcile loops.
- System Design: The Building Blocks Learn the system design building blocks interviewers expect: load balancers, caches, queues, CDNs, databases and back-of-envelope estimates, with runnable Node models.
- System Design: Rate Limiters, Feeds and Chat Practice classic system design problems: token bucket rate limiters, consistent hashing, news feed fan-out, cursor pagination, chat delivery and idempotency keys.
- System Design Case Studies: Dropbox, Netflix, Uber, BookMyShow and Messenger Walk through five classic system design interview questions: Dropbox, Netflix, Uber, BookMyShow and Messenger, with requirements, storage, scaling and runnable models.
- Microservices, Kafka and Kubernetes: Resilience and Messaging Questions Answer microservices, Kafka and Kubernetes interview questions: service boundaries, circuit breakers, sagas, partitions and consumer groups, probes and rollouts.
- Event-Driven Architecture: Event Sourcing, CQRS, Pub/Sub and Streaming Answer event-driven architecture interview questions: events versus commands, pub/sub versus queues and streams, event sourcing, CQRS, retries and dead-letter queues.
- Distributed Systems: Consensus, Clocks, Tracing and Consistency Prepare distributed systems interview answers on consensus (Raft and Paxos), logical clocks, consistency models, fencing tokens, tracing and fault tolerance, with runnable models.
- Low-Level Design: Parking Lot, Elevator and Cache Learn the low-level design interview approach: model a parking lot, an elevator state machine and an LRU cache with clean classes, extensibility and runnable code.
- Testing and Code Quality Questions Answer testing interview questions with confidence: unit vs integration tests, mocks vs stubs, TDD, flaky tests and code review, with runnable examples.
Behavioral and Soft Skills
- Behavioral Questions and the STAR Method Prepare for behavioral interview questions with the STAR method: build a story bank, answer conflict, failure and leadership questions, and tailor stories.
- Resume, Portfolio and Take-Home Projects Write developer resume bullets that get interviews, choose portfolio projects that impress, and handle take-home assignments with a clear strategy.
- Salary Negotiation and Evaluating Offers Learn how to negotiate a software engineering offer: set a range, build leverage, understand equity and compare offers with a simple calculator.
Projects
- Project: A Flashcard Trainer with Spaced Repetition Build an interview flashcard trainer in JavaScript: a question bank, Leitner boxes, scoring and in-memory persistence, with every step runnable.
- Project: A Mock Interview Runner Build a mock interview runner in JavaScript: seeded random question selection, a countdown timer, rubric scoring and a final report you can run.
- Project: A Mini Online Judge Build a tiny online judge in Python: run submissions against test cases, return AC, WA, RE, TLE and CE verdicts, enforce a step budget and rank a scoreboard.
- Project: Build a Rate Limiter and LRU Cache Implement a token bucket, a sliding window rate limiter and an O(1) LRU cache in Node.js with injected clocks and assert-based tests, the way interviewers expect.
- Project: Design and Prototype a URL Shortener Design and prototype a URL shortener: requirements, base62 ID generation, storage, redirects with 301 vs 302, custom aliases, analytics and capacity estimates.
Practice
- Practice: JavaScript and Python Question Set Practice 15 JavaScript and Python interview questions: predict-the-output puzzles and short coding tasks, with hidden solutions and clear explanations.
- Practice: Data Structures, Databases and Systems Set Practice 15 interview questions across algorithms in Python, SQL queries and system design estimates, with runnable workspaces and hidden solutions.
- Practice: A Full Mock Interview Loop Run a full mock interview loop at home: four timed rounds (coding, fundamentals, system design, behavioral) with questions, scoring guides and a score calculator.
Interview Day
- Questions to Ask Your Interviewer Which questions to ask at the end of a tech interview about the team, the code, growth and red flags, plus a small planner that builds your question list.
- Interview Day Checklist and Common Mistakes A practical checklist for the days before and during a tech interview: preparation, remote setup, whiteboard habits, common mistakes and follow-up emails.
- Rapid-Fire Questions: 100 Short Answers One hundred short interview answers across JavaScript, Python, Java, C++, systems, web, databases, algorithms, security and tools, plus a self-quiz you can run.
- Interview Cheat Sheet A one-page tech interview cheat sheet: complexity tables, key definitions, problem-solving patterns, SQL and JavaScript gotchas and a pre-interview checklist.