Quick Revision

GK One-Line Question & Answer

15541+ short questions with short answers, covering every category and sub-category on the site — no long articles to scroll through. Good for a fast recap before an exam, or a few minutes of daily practice.

Computer Fundamentals → Introduction to Computer 38

Model checking in formal verification?
Exhaustively explores state space to verify temporal logic properties
click to copy
Hoare triple {P} C {Q} means?
If precondition P holds before C executes, postcondition Q holds after
click to copy
Invariant in programming is?
A condition that remains true throughout program execution
click to copy
Loop invariant is used to prove?
Loop correctness — condition true before, during, and after each iteration
click to copy
Decidability in computation theory means?
There exists an algorithm that always terminates with correct yes/no answer
click to copy
The Halting Problem is?
Undecidable — no algorithm can determine if arbitrary program halts
click to copy
Church-Turing thesis states?
Any effectively computable function is computable by a Turing machine
click to copy
Lambda calculus was developed by?
Alonzo Church — foundation of functional programming
click to copy
Automata theory studies?
Abstract mathematical machines and their computational power
click to copy
Regular language is recognized by?
Finite automaton (DFA/NFA)
click to copy
Context-free language is recognized by?
Pushdown automaton (PDA)
click to copy
Which language is context-sensitive but not context-free?
a^n b^n c^n
click to copy
Pumping lemma is used to prove?
A language is NOT regular (or not context-free)
click to copy
Type 0 grammar in Chomsky hierarchy generates?
Recursively enumerable languages (most general)
click to copy
Turing complete means?
Can simulate any Turing machine — compute any computable function
click to copy
von Neumann architecture is Turing complete because?
It can simulate any Turing machine computation with sufficient memory
click to copy
Which programming language paradigm models programs as mathematical functions?
Functional (Haskell, Erlang, Clojure)
click to copy
Logic programming (Prolog) uses?
Facts, rules, and queries — computation as logical inference
click to copy
Reactive programming is based on?
Asynchronous data streams and propagation of change
click to copy
Actor model of concurrency uses?
Independent actors communicating via message passing (no shared state)
click to copy
CSP (Communicating Sequential Processes) by Tony Hoare?
Formal model of concurrent processes communicating via channels
click to copy
Goroutines in Go language are?
Lightweight user-space threads managed by Go runtime with channels for communication
click to copy
async/await in Python is based on?
Coroutines and event loop — cooperative multitasking
click to copy
Event loop in Node.js/JavaScript?
Single-threaded non-blocking I/O through callback/promise/async-await mechanism
click to copy
libuv library provides Node.js with?
Cross-platform asynchronous I/O and event loop
click to copy
V8 JavaScript engine is developed by?
Google — also used in Node.js
click to copy
JIT (Just-In-Time) compilation?
Compiles frequently executed code at runtime to machine code
click to copy
Garbage collection (GC) in managed languages?
Automatically reclaims unused memory
click to copy
Mark-and-sweep GC algorithm?
Marks reachable objects, sweeps (frees) unmarked objects
click to copy
Reference counting GC fails with?
Circular references — objects referencing each other never reach count zero
click to copy
Generational GC is based on the observation that?
Most objects die young — frequent minor GC of young generation, rare major GC
click to copy
Concurrent GC (like Go's GC) runs?
Concurrently with the application, minimizing stop-the-world pauses
click to copy
LLVM is?
Compiler infrastructure providing reusable compiler and toolchain components
click to copy
Clang is?
C/C++/Objective-C compiler using LLVM backend
click to copy
Rust programming language is notable for?
Memory safety without GC using ownership/borrowing system
click to copy
Rust's ownership system ensures?
At most one mutable reference OR multiple immutable references at any time — preventing data races
click to copy
WebAssembly (WASM) is?
Binary instruction format for stack-based VM running in browsers at near-native speed
click to copy
Microarchitecture simulator is used for?
Modeling CPU behavior cycle-accurately for architectural research
click to copy

Computer Fundamentals → Memory Units 2

Chomsky hierarchy levels from most to least restricted?
Regular < Context-free < Context-sensitive < Recursively enumerable
click to copy
Coroutine differs from thread in?
Cooperative scheduling — yields control explicitly vs preemptive thread scheduling
click to copy