Skip to content

Formula & Quick Fact Cheat Sheets

Numerical (Section A)

TopicFormula / Rule
Percentagex% of N = (x/100)×N; A is what % of B → (A/B)×100
Ratioa:b = a/b; if a:b = m:n, divide total in m+n parts
AverageSum / n
Profit %(Profit/CP)×100; SP = CP×(100+P%)/100
Loss %(Loss/CP)×100; SP = CP×(100−L%)/100
SI(P×R×T)/100
CI (annual)A = P(1+R/100)^T; CI = A−P
Time & WorkWork = Rate×Time; 1/a + 1/b = combined rate
SpeedSpeed = Distance/Time; Avg speed (equal dist) = 2xy/(x+y)
TrainSame dir: relative =

Digital / Number systems

ConvertMethod
Decimal → BinaryDivide by 2, remainders bottom→top
Binary → DecimalSum bit×2^position
Hex ↔ Binary4 bits per hex digit
2's complementInvert bits + 1
NAND/NORUniversal gates

Boolean quick laws

  • A+0=A, A·1=A, A+A'=1, A·A'=0
  • De Morgan: (A+B)'=A'B' ; (AB)'=A'+B'
  • A+AB=A ; A+A'B=A+B

OS scheduling / memory

AlgorithmKey point
FCFSNon-preemptive; convoy effect
SJFShortest job first; may starve long jobs
Round RobinTime quantum; fair
PriorityStarvation → aging
DeadlockMutual exclusion, hold&wait, no preemption, circular wait
LRUReplace least recently used page

DBMS keys & normal forms

TermMeaning
Primary keyUnique + not null identifier
Foreign keyReferences primary key of another table
1NFAtomic values
2NF1NF + no partial dependency
3NF2NF + no transitive dependency
ACIDAtomicity, Consistency, Isolation, Durability

Networks

Layer (TCP/IP)Examples
ApplicationHTTP, FTP, SMTP, DNS
TransportTCP, UDP
InternetIP, ICMP
Network AccessEthernet, Wi-Fi
Private IPv410.x, 172.16–31.x, 192.168.x

Programming complexities (common)

AlgoBestAverageWorst
Binary searchO(1)O(log n)O(log n)
Bubble/Selection/InsertionO(n)/O(n²)/O(n)O(n²)O(n²)
Merge sortO(n log n)O(n log n)O(n log n)
Quick sortO(n log n)O(n log n)O(n²)
Stack/Queue opsO(1) push/pop or enqueue/dequeue

Software Engineering

  • Waterfall: linear; Agile/Scrum: iterative sprints
  • Cohesion high ↑ good; Coupling low ↓ good
  • Unit → Integration → System → Acceptance

Pedagogy one-liners

  • Formative = during learning; Summative = end
  • Bloom: Remember→Understand→Apply→Analyze→Evaluate→Create
  • Inclusive education = all learners in common setting with support