Tag view

#runtime

Cross-subject tag search for related interview cards.

Clear

Results update as you type. Press / to jump straight into search.

Tagged with runtime

13 cards

Python Medium Theory

Built-in exceptions, try/except/else/finally, custom exceptions, and chaining

Python exception handling is strongest when you catch specific built-in errors, use `else` for the success path, `finally` for cleanup, and custom exceptions when domain meaning matters.

  • Catch only expected failures
  • `else` runs when no exception occurred
  • `raise ... from ...` preserves causal context

Built-in exceptions, try/except/else/finally, custom exceptions, and chaining

Python Medium Theory

GIL basics

The GIL lets only one Python thread execute Python bytecode at a time in CPython.

  • Affects CPU-bound threads
  • I O waits still benefit
  • Use multiprocessing for CPU-heavy work

GIL basics

Python Easy Theory

Interpreted vs compiled in Python

Python source is usually compiled to bytecode first, then executed by the interpreter's virtual machine.

  • Source is not run directly
  • CPython compiles to bytecode
  • Execution still happens inside an interpreter

Interpreted vs compiled in Python

JavaScript Medium Theory

Execution context, call stack, scope chain, and memory heap in JavaScript

JavaScript creates execution contexts for code execution, uses a call stack for active functions, resolves variables through the scope chain, and stores objects in memory.

  • Contexts track variables and `this`
  • The call stack orders active frames
  • Heap memory holds reference values

Execution context, call stack, scope chain, and memory heap in JavaScript