Computer Science — Quick Reference Cheatsheet
Essential Formulas & Rules
Core Topics
Programming Fundamentals (Python/C++):
Key formula/rule: See fundamentals section for complete derivation
When to apply: When the problem mentions keywords related to programming fundamentals (python/c++)
Data Types, Variables, I/O:
Key formula/rule: See fundamentals section for complete derivation
When to apply: When the problem mentions keywords related to data types, variables, i/o
Control Flow (if/else, loops):
Key formula/rule: See fundamentals section for complete derivation
When to apply: When the problem mentions keywords related to control flow (if/else, loops)
Functions & Recursion:
Key formula/rule: See fundamentals section for complete derivation
When to apply: When the problem mentions keywords related to functions & recursion
Arrays & Strings:
Key formula/rule: See fundamentals section for complete derivation
When to apply: When the problem mentions keywords related to arrays & strings
OOP Basics:
Key formula/rule: See fundamentals section for complete derivation
When to apply: When the problem mentions keywords related to oop basics
Problem-Solving Templates
Template 1: Identify → Apply → Verify
Template 2: For MCQs
Most Common Question Types
| Type | What to Do | Time Budget |
|---|
|---|---|---|
| Direct formula | Apply formula directly | 30-60 sec |
|---|---|---|
| Multi-step | Break into steps, apply each | 1-2 min |
| Concept-based | Recall definition + example | 45 sec |
| Data interpretation | Extract data, compute | 2-3 min |
Revision Strategy
1 month before exam:
1 week before:
1 day before:
Labs Section
The Labs section for Computer Science has:

