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 36

SOLID 'D' (Dependency Inversion) states?
High-level modules should not depend on low-level modules — both depend on abstractions
click to copy
DRY principle in software means?
Don't Repeat Yourself — avoid code duplication
click to copy
KISS principle means?
Keep It Simple, Stupid — avoid unnecessary complexity
click to copy
YAGNI principle means?
You Aren't Gonna Need It — don't add functionality until needed
click to copy
Which software testing is done without knowledge of source code?
Black box testing
click to copy
White box testing requires?
Knowledge of internal code structure and logic
click to copy
TDD (Test-Driven Development) workflow is?
Write failing test, write code to pass, refactor
click to copy
BDD (Behavior-Driven Development) uses?
Human-readable specifications (Given-When-Then)
click to copy
Static code analysis is performed?
Without executing code — analyzes source code directly
click to copy
Code coverage measures?
Percentage of code executed during testing
click to copy
Mocking in unit testing?
Creates fake objects simulating real dependencies
click to copy
Continuous Monitoring in DevOps tracks?
Application performance, errors, and infrastructure health
click to copy
APM (Application Performance Monitoring) tools include?
Datadog, New Relic, Dynatrace
click to copy
ELK Stack stands for?
Elasticsearch, Logstash, Kibana — for log management
click to copy
Prometheus is used for?
Metrics collection and alerting
click to copy
Grafana is used to?
Visualize metrics data from Prometheus and other sources
click to copy
Chaos engineering intentionally?
Introduces failures to test system resilience
click to copy
Service Level Objective (SLO) is?
Internal target for service reliability (e.g., 99.9% uptime)
click to copy
Error budget in SRE (Site Reliability Engineering) is?
Allowable unreliability (100% - SLO)
click to copy
Which programming paradigm treats computation as evaluation of mathematical functions?
Functional programming
click to copy
In floating point, NaN (Not a Number) represents?
Invalid/undefined result (e.g., 0/0, sqrt(-1))
click to copy
IEEE 754 positive infinity is represented by?
All exponent bits 1, mantissa all 0, sign 0
click to copy
Denormalized (subnormal) numbers in IEEE 754 handle?
Numbers too small for normal representation (near zero)
click to copy
Binary 11000000.10101000.00000001.00000001 is IP address?
192.168.1.1
click to copy
Booth's algorithm is used for?
Efficient signed binary multiplication
click to copy
Restoring division algorithm in binary?
Partially restores remainder if subtraction result is negative
click to copy
Octal 0.4 in decimal is?
0.5
click to copy
BCD addition of 7+6: result with correction?
0001 0011
click to copy
Excess-3 representation of decimal 5 is?
1000
click to copy
Gray code for decimal 5 is?
0111
click to copy
Binary to Gray code conversion: each Gray bit = ?
XOR of binary bit with previous binary bit
click to copy
Hamming code is used for?
Single-bit error detection AND correction
click to copy
Minimum Hamming distance for single error correction is?
3
click to copy
Number of parity bits needed for 8 data bits in Hamming code?
4
click to copy
CRC error detection can detect?
Burst errors up to CRC length
click to copy
ASCII 'Z' (uppercase) has decimal code?
90
click to copy

Computer Fundamentals → Number System 4

Which number system is used internally by IPv4 routing tables?
Binary
click to copy
Convert hexadecimal C0A80101 to dotted decimal IP?
192.168.1.1
click to copy
Binary number 101.101 in decimal is?
5.625
click to copy
Hexadecimal 0.8 in decimal is?
0.5
click to copy