We use privacy-friendly product analytics (no session recording, PII masked) to improve OpenStem. Load analytics? Privacy Policy
Software: explore STEM content (page 7 of 25) · openstem
Explore STEM Content
Search the community's STEM library — free to study, yours to make your own.
Software
Programming, algorithms and systems on openstem — flashcards, notes, quizzes, sketches and flowcharts shared by the community. Study free, or clone anything into your library.
What are the six phases of the Node.js event loop in order?1 / 10
timers → pending callbacks → idle/prepare → poll → check → close callbacks. Microtasks (process.nextTick, then Promises) are drained between every phase transition.
Af is hard to compute but easy to invertBf is efficiently computable, but no PPT adversary can find a preimage of f(x) for random x except with negligible probabilityCf is a bijection with an efficiently computable inverseDf is a random oracle
What is the main benefit of embedding related data as a subdocument?
AOne read retrieves the parent and its related data togetherBIt removes the 16MB document size limitCIt always uses less disk spaceDIt avoids needing an _id field
Threads: Running Code Concurrently A Thread is an independent path of execution within a program. Java can run many threads at once (on multi-core hardware, truly in parallel), letting one program do several things without blocking. You sta
A closure is a function that remembers the variables from its enclosing lexical scope, even after that scope has finished executing. Every function in JS is a closure.
What is the difference between continuous delivery and continuous deployment?1 / 10
Continuous delivery keeps every change deployable and releases on a manual approval, while continuous deployment automatically ships every passing change to production with no manual gate.
What does the `?` suffix on a type like `String?` mean in Dart?1 / 10
It marks the type as nullable, allowing the value to be either a String or null. A bare `String` is non-nullable and can never hold null under sound null safety.
What information does EXPLAIN ANALYZE give that plain EXPLAIN does not?1 / 10
EXPLAIN ANALYZE actually executes the query and reports actual rows returned, actual time per node, and loop counts, compared to EXPLAIN's estimate-only plan.
What method is at the core of the `Future` trait?1 / 10
`poll(self: Pin<&mut Self>, cx: &mut Context) -> Poll<Self::Output>`. The executor repeatedly calls `poll`; it returns `Poll::Pending` (registering a waker) or `Poll::Ready(output)` when complete.
A guideline for test distribution: many fast, cheap unit tests at the base, fewer integration tests in the middle, and few slow, brittle end-to-end tests at the top. It optimizes for fast feedback and maintainability.
What sits at the top of the GCP resource hierarchy?1 / 10
The Organization node is the root of the hierarchy, representing a company. Below it are Folders, then Projects, then resources. Policies set higher up are inherited downward.
RDS is a managed relational database service supporting engines like PostgreSQL, MySQL, MariaDB, Oracle, and SQL Server, handling patching, backups, and failover.
The Critical Rendering Path A browser doesn't just 'show' a page — it builds up several internal trees, one step feeding the next, before anything appears on screen. A `<script>` tag without `defer` or `async` blocks HTML parsing entirely w
Software
Software · L1 · HTML & CSS: How the Browser Renders a Page
In the OAuth authorization code flow, what does the client exchange for an access token?
AThe user's raw passwordBA short-lived authorization code, plus its client secret or PKCE verifierCThe refresh token onlyDNothing — access tokens are issued immediately on redirect
`string`, `number`, `bigint`, `boolean`, `symbol`, `null`, and `undefined`. These map directly to JavaScript primitives. TypeScript also adds `never`, `unknown`, `any`, and `void` as special types.
What does it mean for an HTTP method to be idempotent?1 / 9
Calling it once or many times with the same request produces the same server state as calling it once. GET, PUT, DELETE, HEAD, and OPTIONS are idempotent; POST is not.
What Is a Transaction? A transaction wraps one or more statements so they succeed or fail together. `BEGIN` starts it, `COMMIT` makes every change permanent, and `ROLLBACK` undoes everything as if none of it happened. This matters whenever
Relational Algebra as SQL's Semantics Codd's relational model (1970) represents data as relations — mathematically, subsets of a Cartesian product of attribute domains, i.e. sets of tuples. Relational algebra is the procedural counterpart:
Four Built-ins, Four Jobs Python's built-in collections overlap in what they can hold but differ sharply in what they guarantee. Picking the wrong one doesn't usually cause a crash — it just makes the code fight against behavior it doesn't
Software
Software · L1 · Python: Choosing the Right Collection