DSA-Gen
All Interview Categories

Programming Languages

Language-specific interview checklists for Java, Python, C++, and JavaScript runtime behavior and internals.

Java

  • How do JDK, JRE, and JVM differ, and how does Java achieve platform independence?

  • Explain the internal working of HashMap in Java and the equals/hashCode contract.

  • Compare String, StringBuilder, and StringBuffer in terms of mutability and thread safety.

  • What are checked vs unchecked exceptions, and how does Java garbage collection work?

  • Explain volatile, synchronized, and ConcurrentHashMap in Java multithreading.

  • Compare ArrayList vs LinkedList, and Comparable vs Comparator in Java.

  • What are Java Streams, Optional, and functional interfaces?

Python

  • Compare lists, tuples, sets, and dictionaries in Python including mutability and time complexities.

  • What is the Global Interpreter Lock (GIL), and when do you use threading vs multiprocessing?

  • Explain decorators, generators (yield), and shallow copy vs deep copy in Python.

  • How do *args, **kwargs, and list/dict comprehensions work in Python?

  • How does Python memory management (reference counting and cyclic GC) work?

  • Compare @staticmethod, @classmethod, and instance methods in Python.

  • How do asyncio, coroutines, and context managers (with statement) work in Python?

C++

  • Compare pointers vs references and stack allocation vs heap allocation in C++.

  • How do virtual functions, vtables, and pure virtual functions work in C++?

  • Explain smart pointers (unique_ptr, shared_ptr, weak_ptr) and RAII.

  • Compare std::vector, std::list, std::map, and std::unordered_map in the STL.

  • Explain move semantics, lvalues vs rvalues, and std::move in modern C++.

  • What is the Rule of Three / Rule of Five in C++, and when are virtual destructors required?

  • Compare templates, constexpr, and inline functions in C++.

JavaScript

  • Explain the JavaScript event loop, call stack, microtask queue, and macrotask queue.

  • What are closures, lexical scoping, and hoisting in JavaScript?

  • Compare var, let, and const, and explain how the 'this' keyword binds in regular vs arrow functions.

  • Explain Promises, async/await, Promise.all vs Promise.allSettled, and prototypal inheritance.

  • Explain event delegation, debouncing, and throttling in browser JavaScript.

  • Compare == vs ===, null vs undefined, and map/filter/reduce array methods.

  • Explain CORS, cookies vs localStorage vs sessionStorage, and module bundlers in web apps.