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 40

Minimum spanning tree algorithms include?
Prim's and Kruskal's algorithms
click to copy
Topological sort applies to?
Directed Acyclic Graphs (DAGs)
click to copy
Floyd-Warshall algorithm finds?
All-pairs shortest paths using dynamic programming
click to copy
Bloom filter is a?
Probabilistic space-efficient structure — no false negatives, possible false positives
click to copy
Skip list provides?
O(log n) average search with probabilistic balance
click to copy
Consistent hashing is used in?
Distributed systems for even load distribution as nodes join/leave
click to copy
Which sorting is stable?
Merge sort
click to copy
TimSort (Python's default sort) is based on?
Natural runs plus merge sort — optimized for real-world partially sorted data
click to copy
LCS (Longest Common Subsequence) has complexity?
O(n x m) using dynamic programming
click to copy
KMP string matching algorithm runs in?
O(n+m) using failure function
click to copy
Aho-Corasick algorithm performs?
Multi-pattern string matching in O(n + sum of pattern lengths + matches)
click to copy
Which data structure implements priority queue most efficiently?
Binary heap
click to copy
Segment tree supports?
Range queries and point updates in O(log n)
click to copy
Fenwick tree (BIT) is used for?
Efficient prefix sum queries and point updates in O(log n)
click to copy
DSU (Disjoint Set Union) with optimizations achieves?
Near O(1) amortized per operation (inverse Ackermann function)
click to copy
Gradient descent minimizes?
Loss function by iteratively adjusting weights in negative gradient direction
click to copy
Dropout regularization in neural networks?
Randomly deactivates neurons during training to prevent overfitting
click to copy
CNN (Convolutional Neural Network) is specialized for?
Processing grid-like data such as images
click to copy
RNN (Recurrent Neural Network) processes?
Sequential data with memory of previous inputs
click to copy
BERT is pre-trained using?
Masked Language Modeling (MLM) and Next Sentence Prediction (NSP)
click to copy
Precision in ML classification is?
TP/(TP+FP) — of all predicted positive, how many are actually positive
click to copy
Recall (Sensitivity) is?
TP/(TP+FN) — of all actual positives, how many were correctly identified
click to copy
K-fold cross-validation?
K folds — train on K-1, validate on 1, repeat K times
click to copy
Random forest is ensemble of?
Decision trees trained on random subsets with feature randomness
click to copy
XGBoost is based on?
Gradient boosted decision trees with regularization
click to copy
ACID vs BASE: BASE means?
Basically Available, Soft-state, Eventually consistent
click to copy
ETL stands for?
Extract, Transform, Load
click to copy
Star schema in data warehouse has?
Central fact table surrounded by dimension tables
click to copy
OLAP vs OLTP: OLAP is for?
Analytical queries on large datasets (data warehousing)
click to copy
Elasticsearch is primarily used for?
Full-text search and log analytics
click to copy
SLA stands for?
Service Level Agreement
click to copy
MTTR stands for?
Mean Time To Recover
click to copy
MTBF stands for?
Mean Time Between Failures
click to copy
99.9% uptime (three nines) allows how much downtime per year?
About 8.76 hours
click to copy
High availability refers to?
System designed to minimize downtime with redundancy
click to copy
Disaster Recovery RPO stands for?
Recovery Point Objective — maximum acceptable data loss
click to copy
RTO in disaster recovery?
Recovery Time Objective — maximum time to restore service
click to copy
Which Python web framework is full-featured?
Django
click to copy
Node.js enables?
JavaScript on server-side via V8 engine and event loop
click to copy
Docker image is?
A read-only template for creating containers
click to copy