

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Comprehensive Study Notes & Practice Questions
Computer organisation refers to the operational units and their interconnections that realize the architectural specifications. The main functional components are:
Input Unit: Accepts data and instructions from the user (e.g., Keyboard, Mouse). Central Processing Unit (CPU): The brain of the computer, consisting of: Arithmetic Logic Unit (ALU): Performs arithmetic Operations (+, -, *) and logical comparisons (>, <, ==). Control Unit (CU): Coordinates activities of all other units. Registers: High-speed internal memory locations inside the CPU. Memory Unit: Stores data and instructions temporarily or permanently. Output Unit: Displays results to the user (e.g., Monitor, Printer).
Memory stores data in binary format (0s and 1s). The hierarchical units of data measurement are:
Unit Equivalent Value
Bit 0 or 1 (Binary Digit)
Nibble 4 Bits
Byte 8 Bits = 1 Byte
Kilobyte (KB) 1024 Bytes
Megabyte (MB) 1024 KB
Gigabyte (GB) 1024 MB
Terabyte (TB) 1024 GB
Petabyte (PB) 1024 TB
Computers represent data using various base systems:
Binary (Base 2): Uses digits 0, 1. Octal (Base 8): Uses digits 0 to 7. Decimal (Base 10): Uses digits 0 to 9. Hexadecimal (Base 16): Uses digits 0 to 9 and letters A to F (where A=10, F=15).
Boolean algebra deals with binary variables and logic operations:
AND (Conjunction, .): Output is True (1) only if ALL inputs are True. OR (Disjunction, +): Output is True (1) if AT LEAST ONE input is True. NOT (Negation, ' or ~): Inverts the input (True becomes False, False becomes True).
Algorithm: A step-by-step finite set of instructions to solve a specific problem.
Flowchart: A graphical representation of an algorithm using standard symbols:
Oval: Start / End Parallelogram: Input / Output Rectangle: Process / Operations Diamond: Decision making (If / Else) Arrows: Flow lines
Python is a high-level, interpreted, and easy-to-read programming language created by Guido van Rossum.
Variables: Reserved memory locations to store values (e.g., x = 10 ). Data Types: Integers (int), Decimals (float), Text (str), Booleans (bool). Control Structure: Decision making via if, elif, and else blocks.
num = int(input("Enter a number: "))
if num % 2 == 0: print(f"{num} is an Even number.") else: print(f"{num} is an Odd number.")