6Sound: file size = sampling rate × bit depth × seconds × channels; lossless vs lossy compression
Pakistan Example
Unicode and Urdu Computing in Pakistan
Pakistan's national language Urdu requires Unicode to be represented digitally. ASCII's 128 characters are entirely insufficient for Urdu's Nastaliq script, which has over 100 distinct letter forms and ligatures. Pakistan's mobile phone manufacturers, government e-services (NADRA, SECP online portals), and news websites (Dawn, Geo) all rely on UTF-8 encoding. A NADRA ID card database storing Pakistani names in Urdu script uses UTF-8, where common Urdu characters require 2–3 bytes each. Without Unicode, Pakistan's national language would be excluded from the digital world — a critical issue for 220 million people. PTCL's IPTV platform encodes Urdu programme guide data in UTF-16, as this is more efficient for predominantly Urdu content than UTF-8.
Quick Revision Infographic
Computer Science — Quick Revision
Data Representation
Key Concepts
1Binary↔hex: group 4 bits = 1 hex digit; B7₁₆ = 10110111₂; use nibble grouping
2Two's complement: negative = flip bits + 1; MSB=1 means negative; range −2ⁿ⁻¹ to 2ⁿ⁻¹−1
3Floating point: more mantissa bits = precision; more exponent bits = range; trade-off with fixed total
4Unicode vs ASCII: ASCII 7-bit/128 chars; UTF-8 variable length, backward compatible, supports all scripts including Urdu/Arabic
6Sound: file size = sampling rate × bit depth × seconds × channels; lossless vs lossy compression
Formulas to Know
B7₁₆ = 10110111₂; use nibble grouping
MSB=1 means negative; range −2ⁿ⁻¹ to 2ⁿ⁻¹−1
Floating point: more mantissa bits = precision; more exponent bits = range; trade-off with fixed total
supports all scripts including Urdu/Arabic
Pakistan Example
Unicode and Urdu Computing in Pakistan
Pakistan's national language Urdu requires Unicode to be represented digitally. ASCII's 128 characters are entirely insufficient for Urdu's Nastaliq script, which has over 100 distinct letter forms and ligatures. Pakistan's mobile phone manufacturers, government e-services (NADRA, SECP online portals), and news websites (Dawn, Geo) all rely on UTF-8 encoding. A NADRA ID card database storing Pakistani names in Urdu script uses UTF-8, where common Urdu characters require 2–3 bytes each. Without Unicode, Pakistan's national language would be excluded from the digital world — a critical issue for 220 million people. PTCL's IPTV platform encodes Urdu programme guide data in UTF-16, as this is more efficient for predominantly Urdu content than UTF-8.