Home/Class 11/Computer Science/Number System and Boolean Logic

Class 11 Computer Science Number System and Boolean Logic Notes and Important Questions

Learn

Loading PDF viewer…

Notes for Class 11 Number System and Boolean Logic (Computer Science) are shown above.

Class 11 Number System and Boolean Logic Notes (Computer Science)

Applications of Computer (Uses) 1. Education :- online classes, e-learning, digital libraries, online admission forms, NEB results published online, computer-based tests.

Key points

  • 1.1 Introduction of Computer 1.1.1 Definition of Computer The word "computer" comes from the Latin word "computare", which means to calculate or to compute. Earlier, computers were used only for calculation, but today they are used in almost every field. Definition :- A computer is an electronic device that accepts data as input, processes it according to a set of instructions (program), stores it, and gives meaningful information as output. Some important terms :- A computer works on the IPO cycle (Input → Process → Output). When storage is included it is called the IPOS cycle. INPUT (data) PROCESS (CPU) OUTPUT (information) STORAGE keyboard, mouse monitor, printer fig: IPOS cycle of a computer Father of computer = Charles Babbage ★ Data :- raw facts and figures which have no clear meaning by themselves. eg. 45, Ram, 2083
  • Information :- processed, organized and meaningful data. eg. "Ram scored 45 marks in 2083"
  • Program :- a set of step-by-step instructions given to the computer to do a task.
  • Processing :- converting data into information (calculating, sorting, comparing etc.) •
  • 1.1 Introduction of Computer 1.1.1 Definition of Computer The word "computer" comes from the Latin word "computare", which means to calculate or to compute. Earlier, computers were used only for calculation, but today they are used in almost every field. Definition :- A computer is an electronic device that accepts data as input, processes it according to a set of instructions (program), stores it, and gives meaningful information as output. Some important terms :- A computer works on the IPO cycle (Input → Process → Output). When storage is included it is called the IPOS cycle. INPUT (data) PROCESS (CPU) OUTPUT (information) STORAGE keyboard, mouse monitor, printer fig: IPOS cycle of a computer Father of computer = Charles Babbage ★ Data :- raw facts and figures which have no clear meaning by themselves. eg. 45, Ram, 2083
  • Information :- processed, organized and meaningful data. eg. "Ram scored 45 marks in 2083"
  • Program :- a set of step-by-step instructions given to the computer to do a task.
  • Processing :- converting data into information (calculating, sorting, comparing etc.) •
  • Characteristics of Computer ★ Imp (5 marks) 1. Speed :- A computer works very fast. It can perform millions / billions of instructions per second. Its speed is measured in MIPS, FLOPS, and time in ms, μs, ns and ps. 2. Accuracy :- A computer gives 100% accurate results if the input and the program are correct. Most errors are human errors. This is called GIGO = Garbage In, Garbage Out. 3. Diligence :- A computer never gets tired, bored or loses concentration. It can work for hours with the same speed and accuracy. 4. Versatility :- It can do many different types of work: typing, calculation, drawing, games, music, video calls, etc. 5. Storage :- It can store a huge amount of data permanently and retrieve it at any time within seconds. 6. Automation :- Once a program is loaded, the computer works automatically without human help, step by step. 7. Reliability :- Modern computers give consistent results and their parts have long life. Limitations of Computer Remember :- A computer is "fast but foolish" — it is fast & accurate but has zero intelligence of its own. No IQ :- It cannot think or take decisions by itself. It does only what it is told to do.
  • No feelings :- It has no emotions, taste or common sense.
  • Dependency :- It depends on electricity and on the user / program.
  • Misuse :- can cause cybercrime, data theft, and health problems like eye strain and back pain. •

Applications of Computer (Uses) 1. Education :- online classes, e-learning, digital libraries, online admission forms, NEB results published online, computer-based tests. 2. Banking & Finance :- ATM, mobile banking, internet banking, digital wallets (eSewa, Khalti), keeping customer records. 3. Health / Medicine :- CT scan, MRI, X-ray, ECG machines, patient records, online appointment, telemedicine. 4. Business :- accounting, billing, inventory, payroll, online shopping (e-commerce), advertisement. 5. Communication :- email, video calls, social media, chatting. 6. Entertainment :- movies, music, games, animation, video editing. 7. Government :- e-governance, online passport & license forms, Nagarik app, census, tax (IRD) online. 8. Engineering & Science :- CAD (Computer Aided Design), simulation, research, space programs. 9. Transport :- online ticket booking (bus, flight), GPS navigation, traffic control. 10. Defence :- missile control, radar, communication, weapon design. 11. Weather forecasting & Agriculture :- predicting rainfall, storms, crop planning. 12. Home :- smart TV, home budgeting, online study, CCTV, smart devices. In short :- Computers are used in every field — from a shop's billing machine to sending satellites into space. 1.1.2 Evolution of Computer Technology The computer was not invented in one day. It developed slowly over thousands of years. Its history can be divided into three eras :- Mechanical era — devices with beads, rods and gears → Electro-mechanical era — machines with electric relays → Electronic era — vacuum tubes → transistors → ICs → microprocessors →

A. Mechanical Era 1. Abacus (around 3000 BC) :- developed in China. It has beads on rods fixed in a wooden frame. Used for addition & subtraction. It is the first calculating device. 2. Napier's Bones (1617) :- invented by John Napier (Scotland). It used rods (bones) with numbers written on them for multiplication. Napier also invented logarithms. 3. Slide Rule (1620s) :- invented by William Oughtred. Based on logarithms; used for multiplication, division, roots. Engineers used it till the 1970s. 4. Pascaline (1642) :- invented by French mathematician Blaise Pascal at the age of 19. It was the first mechanical adding machine, using gears and wheels. It could only add & subtract. 5. Stepped Reckoner (1671) :- by Gottfried Leibniz (Germany). It could add, subtract, multiply, divide and find square roots. Leibniz also gave the idea of the binary number system. 6. Jacquard's Loom (1801) :- by Joseph Marie Jacquard (France). A weaving machine controlled by punched cards. Gave the idea of giving instructions to a machine (programming). 7. Charles Babbage (England) :- So :- Charles Babbage is called the Father of the Modern Computer. 8. Lady Ada Augusta Lovelace :- wrote instructions for Babbage's Analytical Engine, so she is called the first computer programmer. The programming language "ADA" is named after her. 9. Herman Hollerith — Tabulating Machine (1890) :- used punched cards to process the US census. Work that took about 7–8 years was done in about 2–3 years. His company later became IBM (1924). Difference Engine (1822) — to calculate mathematical tables automatically. • Analytical Engine (1834) — had input (punched cards), Mill (processor), Store (memory) and output. This is exactly like a modern computer! •

B. Electro-mechanical Era 1. ABC (1937–42) :- Atanasoff–Berry Computer by John Atanasoff & Clifford Berry. First electronic digital computer, but special purpose (solving equations). 2. Mark-I (1944) :- by Howard Aiken with IBM at Harvard University. First fully automatic electro-mechanical computer; about 15 m long, used relays & switches. C. Electronic Era 1. ENIAC (1946) :- Electronic Numerical Integrator and Computer, built by J. Presper Eckert & John Mauchly. Used about 18,000 vacuum tubes, weighed about 30 tons and filled a big room. It is called the first general-purpose electronic computer. It was programmed by changing wires. 2. Stored Program Concept (1945) :- given by John von Neumann. Both program and data are stored in the same memory, so there is no need to rewire the computer for each new job. All modern computers follow this idea. 3. EDVAC (1949) :- Electronic Discrete Variable Automatic Computer, designed on the stored program concept. 4. EDSAC (1949) :- by Maurice Wilkes, Cambridge University. First practical storedprogram computer. 5. UNIVAC-I (1951) :- Universal Automatic Computer by Eckert & Mauchly. First commercial computer (sold to companies), used for the US census. Computer in Nepal :- The first computer in Nepal was the IBM 1401, brought in 2028 BS (1971 AD) for the national census. Generations of Computer The development of electronic computers is divided into 5 generations. Each generation is based on a new main electronic component which made computers smaller, faster, cheaper and more reliable. vacuum tube → transistor → IC → microprocessor (VLSI) → AI / ULSI

  • First Generation (1940–1956) → Vacuum tube Examples :- ENIAC, EDVAC, EDSAC, UNIVAC-I, IBM 650 Second Generation (1956–1963) → Transistor Examples :- IBM 1401, IBM 1620, IBM 7094, CDC 1604, Honeywell 400 Third Generation (1964–1971) → IC vacuum tube = glass tube like a bulb, gets very hot Main component: vacuum tubes (valves).
  • Memory: magnetic drums; input by punched cards & paper tape.
  • Language: machine language (0s and 1s).
  • Very large in size, needed air conditioning (AC).
  • Produced lots of heat, used huge electricity.
  • Slow (speed in milliseconds), unreliable — tubes burned out often.
  • Very costly, not portable.
  • transistor invented in 1947 at Bell Labs (Bardeen, Brattain, Shockley) Main component: transistors (replaced vacuum tubes).
  • Memory: magnetic core; storage on magnetic tape & disk.
  • Language: assembly language and early high-level languages like FORTRAN and COBOL.
  • Smaller, faster (microseconds), more reliable than 1st gen.
  • Less heat & less power, but still needed AC.
  • Still costly; used mostly by big companies & universities.
  • Batch processing was used.
  • IC invented by Jack Kilby (1958) & Robert Noyce Main component: Integrated Circuits (IC) — many transistors on one silicon chip. (SSI & MSI)
  • Keyboard & monitor used instead of punched cards.
  • Operating systems came; multiprogramming possible.
  • High-level languages: BASIC, PASCAL, FORTRAN-II etc.
  • Smaller, faster (nanoseconds), cheaper, more reliable. •

Examples :- IBM 360 series, PDP-8, PDP-11, Honeywell 6000 Fourth Generation (1971–present) → Microprocessor Examples :- IBM PC (1981), Apple II, Apple Macintosh, modern desktops Fifth Generation (present & future) → AI Examples :- smart assistants, AI chatbots, robots, self-driving cars Summary Table of Generations ★ draw this in exam Gen. Period Main device Language Examples 1st 1940–56 Vacuum tube Machine ENIAC, UNIVAC-I 2nd 1956–63 Transistor Assembly, FORTRAN, COBOL IBM 1401, IBM

  • 3rd 1964–71 IC (SSI, MSI) High level (BASIC, PASCAL) IBM 360, PDP-11 4th 1971–now Microprocessor (VLSI) C, C++, Java, 4GL IBM PC, Apple Mac 5th present & future AI, ULSI Python, PROLOG, LISP robots, AI systems Main component: microprocessor, made with LSI & VLSI technology (thousands to millions of transistors on one chip).
  • First microprocessor: Intel 4004 (1971).
  • Personal computers (PC), laptops, GUI (mouse, icons), networking & Internet.
  • Languages: C, C++, Java, database languages.
  • Very small, fast (picoseconds), cheap and portable.
  • Based on Artificial Intelligence (AI) — computers that can think, learn and decide.
  • Technology: ULSI, parallel processing, quantum computing, nanotech.
  • Natural language processing, voice recognition, robotics, expert systems.
  • Languages: Python, PROLOG, LISP. •
  • Trend from 1st → 5th generation Memory trick :- "Very Tall Indian Men Arrive" → Vacuum tube, Transistor, IC, Microprocessor, AI Note: some books give slightly different years (eg. 4th gen 1971–1989). Any standard range is accepted. 1.1.3 Measurement Unit of Processing Speed The speed of a computer means how fast it can process instructions. It is measured in three ways :- a) Clock speed (Hertz) :- number of clock cycles the CPU completes in one second. b) MIPS :- Million Instructions Per Second. Used for normal PCs and mainframes. c) FLOPS :- Floating-point Operations Per Second. Used for supercomputers (MFLOPS, GFLOPS, TFLOPS, PFLOPS, EFLOPS). Frontier (USA) became the first exascale (1018 FLOPS) supercomputer in 2022. Size :- decreased (room size → palm size) → Speed :- increased (ms → μs → ns → ps) → Cost :- decreased → Heat & power use :- decreased → Reliability & storage :- increased → Ease of use :- increased (machine language → natural language) → 1 Hz = 1 cycle per second
  • 1 MHz = 106 Hz (million)
  • 1 GHz = 109 Hz (billion) → eg. a 3.2 GHz CPU = 3.2 billion cycles/sec •

Time taken by the computer Unit Symbol Value Millisecond ms 10-3 sec (1/1,000) Microsecond μs 10-6 sec (1/1,000,000) Nanosecond ns 10-9 sec Picosecond ps 10-12 sec Femtosecond fs 10-15 sec Smaller the time per operation → faster the computer. Measurement Unit of Storage (Memory) The smallest unit of data in a computer is a bit (0 or 1). All storage is measured in groups of bits :- Unit Equal to 1 Bit 0 or 1 1 Nibble 4 bits 1 Byte (B) 8 bits (1 character) 1 Kilobyte (KB) 1024 Bytes = 210 B 1 Megabyte (MB) 1024 KB = 220 B 1 Gigabyte (GB) 1024 MB = 230 B 1 Terabyte (TB) 1024 GB = 240 B 1 Petabyte (PB) 1024 TB = 250 B 1 Exabyte (EB) 1024 PB = 260 B 1 Zettabyte (ZB) 1024 EB = 270 B 1 Yottabyte (YB) 1024 ZB = 280 B Trick: B → K → M → G → T → P → E → Z → Y ("Kind Men Give Toffees Politely Every Zero Year") Solved examples Q1. Convert 2 KB into bits. bit = binary digit ★

  • 2 KB = 2 × 1024 B = 2048 B = 2048 × 8 bits = 16384 bits Q2. How many bytes in 3 MB? 3 MB = 3 × 1024 × 1024 B = 3,145,728 bytes Q3. 4096 MB = ? GB 4096 ÷ 1024 = 4 GB 1.1.4 Classification of Computer (on the basis of size) On the basis of size, speed, cost and capacity, computers are of 4 types :- Super, Mainframe, Mini and Micro. 1. Supercomputer 2. Mainframe Computer PARAM = India's supercomputer series The fastest, largest and most expensive computer.
  • Has thousands of processors working in parallel (parallel processing).
  • Speed measured in FLOPS (petaFLOPS / exaFLOPS).
  • Needs special cooling and lots of electricity.
  • Uses :- weather forecasting, space research, nuclear research, climate modelling, scientific simulation, AI training.
  • Examples :- Frontier, Fugaku, Summit, Cray, PARAM.
  • Large, powerful computer that can support hundreds or thousands of users at the same time through terminals.
  • Very high storage & processing capacity, very reliable.
  • Used where huge amount of data is processed :- banks, airlines (ticket reservation), insurance companies, big government offices.
  • Kept in special rooms with AC.
  • Examples :- IBM z Series (z15, z16), IBM S/390, UNIVAC 1100. •
  • Super vs Mainframe :- a supercomputer runs a few programs as fast as possible; a mainframe runs many users' programs at the same time. 3. Minicomputer 4. Microcomputer Comparison Basis Super Mainframe Mini Micro Size Largest Large Medium Small Speed Fastest Very fast Fast Slowest Cost Highest High Medium Lowest Users Few tasks 1000s 4–200 Single Use Research Banks Offices Personal Extra (by working principle) :- Analog (continuous data, eg. thermometer, speedometer), Digital (discrete 0/1 data, eg. PC), Hybrid (both, eg. ECG machine, petrol pump). Medium-sized computer — smaller & cheaper than mainframe, more powerful than micro.
  • Supports multiple users (about 4 to 200) at the same time.
  • Used in small & medium organizations, colleges, hospitals, as servers.
  • Examples :- PDP-11, VAX, IBM AS/400, Prime 9755.
  • The smallest and cheapest computer, built around a microprocessor.
  • Designed for one user, so also called Personal Computer (PC).
  • Types :- desktop, laptop / notebook, tablet, smartphone, palmtop, workstation.
  • Used at home, school, offices, shops.
  • Examples :- IBM PC, Apple Mac, Dell / HP laptops, iPad. •
  • 1.1.5 Mobile Computing and its Applications Definition :- Mobile computing is the technology that allows us to use a computer and transmit data, voice and video while moving, through wireless devices, without being connected to a fixed physical link. eg. checking email on a phone in a bus, paying with a QR code, video calling from anywhere. Components of Mobile Computing 1. Mobile Communication :- the network infrastructure & protocols for wireless connection — 4G / 5G, Wi-Fi, Bluetooth, GPS, satellite. 2. Mobile Hardware :- the portable devices — smartphones, tablets, laptops, smart watches, PDAs. They have a processor, memory, battery, sensors and a touch screen. 3. Mobile Software :- the operating system and apps that run on the device — Android, iOS, and mobile apps. Features / Characteristics Applications of Mobile Computing 1. Mobile banking & payment :- mobile banking apps, digital wallets like eSewa, Khalti, FonePay QR. 2. Education :- e-learning apps, online classes, digital notes, mock tests. 3. Navigation & transport :- Google Maps, ride-sharing apps (Pathao, inDrive), bus & flight booking. Portability — small and easy to carry.
  • Connectivity — always connected to the Internet.
  • Location awareness — uses GPS to know where you are.
  • Battery powered — works without a power cable.
  • Social & interactive — share data with others easily.
  • Personalization — apps and settings for each user. •
  • 4. E-commerce :- online shopping (Daraz), food delivery (Foodmandu). 5. Health :- telemedicine, health tracking with smart watches, online doctor appointment. 6. Communication & social media :- WhatsApp, Viber, Messenger, video calls. 7. Business :- work from anywhere, email, cloud documents, sales tracking. 8. Emergency services & e-governance :- Nagarik app, disaster alerts, police / ambulance location. 9. Entertainment :- music, video streaming, mobile games. Advantages Limitations 1.2 Computer System and I/O Devices A computer system is a combination of hardware, software and users (humanware) working together to do a task. 1.2.1 Computer Architecture and Organization Computer Architecture :- the design of a computer that is visible to the programmer — i.e. what the computer does. eg. instruction set, word length, number of bits for data, addressing modes, I/O mechanism. Work & study from anywhere, any time.
  • Saves time and increases productivity.
  • Instant communication & real-time information.
  • Security risk :- hacking, data theft over public Wi-Fi.
  • Limited battery life, small screen & keyboard.
  • Depends on network quality / bandwidth.
  • Health problems & addiction from over-use. •

Computer Organization :- the way the hardware parts are connected and work together to implement the architecture — i.e. how it does it. eg. control signals, interfaces, memory technology, circuit design. Simple example :- "Does the computer have a multiply instruction?" → architecture. "Is multiply done by a special multiplier circuit or by repeated addition?" → organization. Computer Architecture Computer Organization Tells what the computer does Tells how it does it Logical / functional view Physical / structural view Visible to the programmer Mostly hidden from the programmer Deals with instruction set, addressing Deals with circuits, signals, memory types Designed first Done after architecture is decided Like the plan of a building Like the actual bricks & wiring Von Neumann Architecture ★ diagram Q Proposed by John von Neumann in 1945. It is based on the stored program concept — program instructions and data are stored together in the same memory, and the CPU fetches them one by one. CPU Control Unit ALU Registers Main Memory (program + data together) Input Output bus fig: Von Neumann (stored program) architecture

Main parts :- CPU (CU + ALU + registers), memory, input/output and buses connecting them. Von Neumann bottleneck :- since data and instructions use the same bus, the CPU must wait — it can't fetch an instruction and data at the same time. This limits speed. Harvard architecture :- uses separate memory and separate buses for instructions and data, so both can be fetched together (faster). Used in microcontrollers & DSPs. 1.2.2 Components of Computer System ★★ very imp Every computer has 5 basic functional units :- Input unit, Processing unit (CPU), Memory unit, Storage and Output unit. CPU Control Unit (CU) ALU Memory Unit (primary: RAM, ROM) Input Unit Output Unit Secondary Storage — data flow - - control signal fig: Block diagram of a computer system The CPU = CU + ALU + Memory (registers). It is called the "brain" of the computer. The CU sends control signals (dashed lines) to all other units, and data moves along the solid lines. 1. Input Unit :- accepts data and instructions from the user and converts them into binary form (0 & 1) that the computer understands. eg. keyboard, mouse, scanner, microphone.

  • 2. Processing Unit (CPU) :- processes the data. It has :- 3. Memory Unit (Primary) :- stores data and instructions temporarily while they are being processed, and also stores results. eg. RAM, ROM, cache. It is directly accessed by the CPU. 4. Storage (Secondary) :- stores data permanently for future use, even when power is off. eg. hard disk, SSD, pen drive, DVD. 5. Output Unit :- converts the processed result from binary into human readable form (soft copy or hard copy). eg. monitor, printer, speaker. Machine cycle :- Fetch → Decode → Execute → Store. The CU repeats this cycle for every instruction. 1.2.3 Microprocessor Definition :- A microprocessor is a single integrated circuit (chip) that contains the whole CPU — ALU, CU and registers. It is the "brain" of a microcomputer. It is made of silicon and contains millions to billions of tiny transistors, built using VLSI technology. The microprocessor started the 4th generation of computers. ALU (Arithmetic Logic Unit) :- does all arithmetic (+, −, ×, ÷) and logical operations (<, >, =, AND, OR, NOT).
  • CU (Control Unit) :- controls and coordinates all parts of the computer. It fetches instructions from memory, decodes them, and tells other units what to do. Works like a traffic police / manager. It does not process data itself.
  • Registers :- very small, very fast memory inside the CPU to hold data & instructions currently being processed. eg. Accumulator (AC), Program Counter (PC), Instruction Register (IR), MAR, MDR. •

History (few important ones) Year Processor Word length 1971 Intel 4004 (first microprocessor) 4-bit 1972 Intel 8008 8-bit 1976 Intel 8085 8-bit 1978 Intel 8086 16-bit 1985 Intel 80386 32-bit 1993 Intel Pentium 32-bit 2003 → AMD Athlon 64, Intel Core 2, Core i3/i5/i7/i9 64-bit now AMD Ryzen, Apple M-series, Snapdragon (ARM) 64-bit, multi-core Major manufacturers :- Intel, AMD, Apple, Qualcomm, MediaTek, Samsung. Multi-core processor :- one chip with 2, 4, 8 or more cores (processing units), so it can do many tasks at once. eg. dual-core, quad-core, octa-core. Basic concepts of microprocessor a) Clock speed :- the number of pulses (cycles) per second produced by the CPU's internal clock. Each instruction is done in one or more clock cycles. Measured in MHz / GHz. Higher clock speed → faster processor. eg. Intel Core i5 at 3.5 GHz. b) Word length :- the number of bits the CPU can process at one time. Common word lengths are 8, 16, 32 and 64 bits. Greater word length → more powerful CPU and more memory it can handle. eg. a 64-bit processor processes 64 bits at once. c) Cores & cache :- more cores and bigger cache also increase performance.

  • Components of a microprocessor & their functions Functions in short :- fetch instructions, decode them, do calculations & comparisons, control data transfer between memory and I/O devices. 1.2.4 Bus System ★ Imp Bus :- a bus is a set of parallel wires (lines) that carries data, addresses and control signals between the CPU, memory and I/O devices. CPU Memory I/O devices Address bus - - (one way) Data bus (two way) Control bus
  • fig: system bus 1. Data bus :- carries the actual data between CPU, memory & I/O. It is bidirectional (two-way). Its width (8, 16, 32, 64 lines) = how many bits move at one time. ALU :- performs arithmetic & logical operations.
  • Control Unit :- fetches, decodes & executes instructions; sends control signals.
  • Registers :- fast storage inside CPU:
  • Accumulator (AC) — holds results of ALU
  • Program Counter (PC) — address of the next instruction
  • Instruction Register (IR) — current instruction
  • MAR — memory address to read/write; MDR — data read from / written to memory
  • Cache memory :- small fast memory on the chip.
  • Internal buses :- connect the parts inside the chip.
  • Clock :- gives timing pulses to keep everything in step. •
  • 2. Address bus :- carries the address of the memory location or I/O device the CPU wants to use. It is unidirectional (CPU → memory/I/O). Width decides the maximum memory: n lines → 2n locations. eg. 16 lines → 216 = 64 KB; 32 lines → 232 = 4 GB. 3. Control bus :- carries control signals from the CU — memory read, memory write, I/O read/write, interrupt, clock, reset. Tells devices what to do and when. 1.2.5 Primary Memory Definition :- Primary memory (main memory) is the memory that is directly accessed by the CPU. It holds the data and programs currently being used. eg. RAM, ROM, cache. It is fast but has limited capacity and is costly per GB. It is made of semiconductor chips. RAM (Random Access Memory) ★ Types of RAM SRAM (Static RAM) DRAM (Dynamic RAM) Made of flip-flops (transistors) Made of capacitors + transistor No refreshing needed Needs refreshing many times per second Faster Slower Costly, low density Cheaper, high density Used as cache memory Used as main memory (RAM sticks) A read / write memory — data can be read and changed.
  • Volatile — all data is lost when power is switched off.
  • Called "random access" because any location can be accessed directly in the same time.
  • Holds the OS, running programs & open files. More RAM → smoother multitasking. •
  • Types of DRAM :- SDRAM (Synchronous DRAM), DDR SDRAM (Double Data Rate) → DDR2, DDR3, DDR4, DDR5, RDRAM (Rambus). DDR transfers data twice per clock cycle. ROM (Read Only Memory) Types of ROM 1. Mask ROM (MROM) :- data written at the factory during manufacture; can never be changed. 2. PROM :- Programmable ROM — blank when bought; user can write it only once using a PROM programmer. 3. EPROM :- Erasable PROM — erased by exposing to ultraviolet (UV) light, then reprogrammed. Has a small glass window. 4. EEPROM :- Electrically Erasable PROM — erased & rewritten using electric signals, without removing the chip. Flash memory is a type of EEPROM. Difference between RAM and ROM ★ 2 marks RAM ROM Read & write memory Read only memory Volatile Non-volatile Stores running programs & data Stores BIOS / startup instructions Larger capacity (GBs) Small capacity (KBs/MBs) Faster Slower than RAM eg. SRAM, DRAM eg. PROM, EPROM, EEPROM Data can only be read, not easily changed by the user.
  • Non-volatile — data stays even when power is off.
  • Stores permanent instructions like BIOS / firmware and the boot program (POST).
  • Written by the manufacturer. •
  • Cache Memory Cache is a very small, very fast memory (made of SRAM) placed between the CPU and RAM. It stores the data and instructions the CPU uses most frequently, so the CPU doesn't wait for slow RAM. It increases the overall speed of the computer. It is costly so its size is small (KBs to MBs). Buffer A buffer is a temporary storage area that holds data while it is being moved between two devices that work at different speeds. eg. Cache vs Buffer :- cache = to speed up access of frequently used data; buffer = to match speed between devices during transfer. Memory Hierarchy Registers Cache Main memory (RAM) Secondary (SSD / HDD) Tape / Optical / Cloud faster & costlier bigger capacity fig: memory hierarchy CPU checks cache first: found = "cache hit", not found = "cache miss" L1 cache — inside each CPU core, smallest & fastest.
  • L2 cache — bigger, a bit slower.
  • L3 cache — largest, shared by all cores.
  • Printer buffer — the computer sends pages quickly and continues other work while the slow printer prints.
  • Keyboard buffer — stores keys typed while the CPU is busy.
  • Video buffering — YouTube loads some video ahead so it plays smoothly. •
  • 1.2.6 Secondary Memory Definition :- Secondary memory (auxiliary storage) is non-volatile memory used to store data and programs permanently. It is not directly accessed by the CPU; data is first loaded into RAM. It has large capacity, is cheaper per GB, but is slower than primary memory. Types :- magnetic, flash (solid state) and optical. A. Magnetic Disk — Hard Disk (HDD) sector track spindle cylinder platters & heads fig: tracks, sectors & cylinder of a hard disk Floppy disk :- old magnetic disk (3.5 inch, 1.44 MB). Now obsolete. Magnetic tape :- plastic tape coated with magnetic material. It is a sequential access device (must go through data in order). Very cheap & huge capacity; used for backup in big organizations. Made of metal platters coated with magnetic material, rotating on a spindle (5400 / 7200 RPM).
  • Track — circular path on a platter; Sector — a pie-shaped part of a track (usually 512 B or 4 KB); Cylinder — same track on all platters.
  • Read/write heads move over the surface to read & write data. Capacity: 500 GB to many TB.
  • Access time = seek time + rotational latency (+ transfer time). •
  • B. Flash Memory (Solid State Storage) Flash memory is a non-volatile, electrically erasable semiconductor memory (type of EEPROM). It has no moving parts, so it is fast, silent and shock-resistant. HDD vs SSD HDD SSD Magnetic, has moving parts Flash chips, no moving parts Slower Much faster Cheaper per GB Costlier per GB Makes noise, can break if dropped Silent, shock-resistant Uses more power Uses less power C. Optical Disk Optical disks store data as tiny pits and lands on the surface, which are read using a laser beam. They are portable and cheap. Disk Capacity Laser CD (Compact Disc) 700 MB infrared (780 nm) DVD (Digital Versatile Disc) 4.7 GB (single layer), 8.5 GB (dual) red (650 nm) Blu-ray Disc (BD) 25 GB (single), 50 GB (dual) blue-violet (405 nm) Types by writing :- SSD (Solid State Drive) :- replaces HDD in modern laptops; much faster boot & loading. Types: SATA SSD, NVMe SSD.
  • Pen drive (USB flash drive) :- small, portable, plugs into USB port. 8 GB to 1 TB.
  • Memory card :- SD, microSD cards used in phones & cameras.
  • ROM (CD-ROM, DVD-ROM) — read only, data written by maker.
  • R (CD-R, DVD-R) — recordable once (WORM: write once, read many).
  • RW (CD-RW, DVD-RW) — can be erased & rewritten many times. •

D. External Storage Devices Storage devices connected from outside the computer, usually by USB, for backup & carrying data. eg. external HDD, external SSD, pen drive, memory card reader, NAS. Cloud storage (Google Drive, OneDrive) is also used as online external storage. E. Memory Stick Memory Stick is a removable flash memory card introduced by Sony in 1998, used in Sony cameras, PlayStation Portable etc. Types: Memory Stick PRO, PRO Duo, Micro (M2). Nowadays the word "memory stick" is also commonly used for a USB pen drive. Primary vs Secondary Memory ★ 2 marks Primary memory Secondary memory Directly accessed by CPU Not directly accessed by CPU Mostly volatile (RAM) Non-volatile Faster Slower Costly, small capacity Cheaper, large capacity Semiconductor chips Magnetic, optical, flash eg. RAM, ROM, cache eg. HDD, SSD, DVD, pen drive 1.2.7 Input Devices Input devices are hardware used to enter data and instructions into the computer. They convert our data into binary (machine-readable) form. 1. Keyboard The most common input device for typing text & numbers. Standard keyboard has about 101–104 keys, with QWERTY layout. QWERTY = first 6 letters of the top letter row

  • Types: wired, wireless, ergonomic, mechanical, virtual (on-screen) keyboard. 2. Mouse A pointing device used to move the cursor (pointer) on the screen and select items. Invented by Douglas Engelbart (1960s). Actions :- click, double click, right click, drag & drop, scroll. Types :- mechanical (ball) mouse, optical mouse (LED light), laser mouse, wireless / Bluetooth mouse. Other pointing devices: trackball, touchpad, joystick. 3. Scanner A scanner converts a paper document or photo into a digital image that can be stored and edited in a computer. Types: flatbed, sheet-fed, handheld, drum scanner. Resolution measured in DPI (dots per inch). 4. Light Pen A pen-shaped pointing device with a light-sensitive tip. It is pointed directly at the screen to select items or draw. Used in CAD and drawing work, mainly with old CRT monitors. Today stylus pens are used on tablets instead. 5. Touch Screen A display screen that is both input and output device. We give input by touching the screen with a finger or stylus. Used in smartphones, tablets, ATMs, ticket kiosks, POS machines. Alphanumeric keys — A–Z, 0–9
  • Function keys — F1 to F12
  • Numeric keypad — on the right side
  • Cursor / arrow keys — ← ↑ → ↓, Home, End, PgUp, PgDn
  • Special / modifier keys — Ctrl, Alt, Shift, Esc, Enter, Tab, Caps Lock, Windows key
  • Resistive — works by pressure; used in ATMs, old devices.
  • Capacitive — senses the electric charge of the finger; used in smartphones, supports multi-touch. •

6. OMR — Optical Mark Reader ★ OMR detects the presence or absence of pencil / pen marks in pre-defined positions on a special form, using light reflection. Used for checking multiple choice answer sheets (entrance exams, Loksewa), survey forms, lottery tickets. Very fast and accurate for objective tests. 7. OCR — Optical Character Reader / Recognition OCR reads printed or handwritten characters from a scanned image and converts them into editable text. Works with a scanner + OCR software. Used for digitizing books, reading passports, number plate recognition, scanning bills. eg. Google Lens text copy. 8. BCR — Bar Code Reader A BCR reads bar codes (pattern of black & white parallel lines of different widths) using a laser / light beam. Each bar code represents a product number. Used in supermarkets, libraries, shops for billing and stock. QR code scanners work in a similar way for 2D codes. 9. MICR — Magnetic Ink Character Reader MICR reads characters printed with special magnetic ink (containing iron oxide). Used mainly in banks to process cheques — cheque number, bank code & account number at the bottom of the cheque are printed in MICR font (E-13B). It is fast, secure and hard to forge. Don't mix up :- OMR = marks, OCR = characters/text, BCR = bar codes, MICR = magnetic ink on cheques.

  • 10. Microphone Converts sound (voice) into electrical signals that are digitized and stored in the computer. Used for voice recording, video calls, voice commands (speech recognition), online classes. 11. Digital Camera Captures photos and videos in digital form using an image sensor (CCD / CMOS) instead of film. Images are stored on a memory card and transferred to the computer. Quality measured in megapixels (MP). Webcams are small digital cameras for video calls. 1.2.8 Output Devices Output devices show the processed result to the user in human-readable form. Output can be :- 1. Monitor (VDU) The main output device that displays text, images and video. Quality depends on resolution (eg. 1920×1080), size (inch, diagonal), refresh rate (Hz) and pixels. 2. Printer A printer produces hard copy output on paper. Two types :- A. Impact printer :- prints by striking the paper through an ink ribbon. Noisy, can make carbon copies. eg. dot matrix, daisy wheel, line printer. Soft copy — seen on screen / heard, not touchable (monitor, speaker).
  • Hard copy — printed on paper, permanent (printer, plotter).
  • CRT — old, bulky, used a cathode ray tube.
  • LCD (Liquid Crystal Display) — flat, thin; liquid crystals between glass sheets block or pass light from a backlight (CCFL). Uses less power than CRT.
  • LED monitor — an LCD screen that uses LEDs as backlight; brighter, thinner, better colour and less power than LCD. (OLED: each pixel makes its own light, no backlight.) •

B. Non-impact printer :- prints without striking the paper. Quiet, faster, better quality. eg. inkjet, laser, thermal. i) Dot Matrix Printer :- impact printer; a print head with pins (9 or 24) strikes an inked ribbon to form characters as patterns of dots. Cheap to run, noisy, low quality. Speed in CPS (characters per second). Used for bills, bank passbooks, multipart forms. ii) Inkjet Printer :- non-impact; sprays tiny droplets of liquid ink through nozzles onto paper. Good colour quality, cheap printer but ink is costly. Speed in PPM. Used at home & small offices for photos. iii) Laser Printer :- non-impact; uses a laser beam, a drum and toner powder. The laser draws the page on the drum with static charge, toner sticks to it, and heat (fuser) melts it onto paper. Fastest & best quality, quiet; costly to buy. Speed in PPM. Impact printer Non-impact printer Strikes the paper No striking Noisy Quiet Low print quality High print quality Can make carbon copies Cannot make carbon copies eg. dot matrix eg. inkjet, laser 3. Speaker Converts electrical (digital) audio signals into sound. Needs a sound card / audio chip. Used for music, movies, video calls and alerts. Headphones / earphones are personal speakers. Other output devices: plotter (large drawings / maps), projector, headphones.

  • 1.2.9 Hardware Interfaces Interface / Port :- a connection point (socket) on the computer where external devices like printer, mouse, monitor are plugged in. It allows communication between the computer and the device. Parallel (25 pin) Serial (9 pin) USB-A USB-C HDMI fig: rough shapes of common ports 1. Parallel Port :- sends 8 bits at the same time through 8 separate wires. Usually a 25-pin (DB-25) female port, called LPT port. Used for old printers and scanners. Works only for short cables; now replaced by USB. 2. Serial Port :- sends data one bit at a time over a single line. Usually 9-pin (DB-9) male port, called COM port (RS-232 standard). Used for old mouse, modem, and still for networking equipment & machines. Slower than parallel but works over longer cables. 3. USB Port (Universal Serial Bus) :- the most common port today (introduced 1996). It is a fast serial interface that can connect up to 127 devices (using hubs). 4. HDMI (High Definition Multimedia Interface) :- a digital interface that carries highquality video AND audio together in a single cable. Used to connect computer / laptop to monitor, TV, projector; also in game consoles & set-top boxes. Supports HD, 4K and 8K. Replaced old VGA (analog video only) port. Plug and play & hot swapping — connect/remove without restarting.
  • Also supplies power and can charge devices.
  • Connectors: Type-A, Type-B, Mini, Micro, Type-C (reversible).
  • Versions & speed: USB 1.1 (12 Mbps), USB 2.0 (480 Mbps), USB 3.0 (5 Gbps), USB 3.2 (up to 20 Gbps), USB4 (40 Gbps).
  • Used for: pen drive, keyboard, mouse, printer, phone, external HDD. •
  • 5. Expansion Slots :- long sockets on the motherboard where expansion cards are inserted to add new features or upgrade the computer. Serial port Parallel port 1 bit at a time 8 bits at a time 9 pin (DB-9), COM 25 pin (DB-25), LPT Long distance possible Short distance only eg. old mouse, modem eg. old printer Important Questions — Unit 1 Short questions (2–3 marks) Types :- ISA (old), PCI, AGP (for old graphics cards), PCI Express (PCIe) — modern & fastest (x1, x4, x16).
  • Expansion cards :- graphics card (GPU), sound card, network card (NIC / LAN card), Wi-Fi card, TV tuner card.
  • Define computer. Write any four characteristics.
  • What is GIGO? Why is a computer called "fast but foolish"?
  • Who is called the father of computer and why?
  • Write the main feature of each generation of computer.
  • Differentiate between RAM and ROM.
  • Differentiate between SRAM and DRAM.
  • What is cache memory? How does it increase speed?
  • What is a buffer? Give an example.
  • Define word length and clock speed.
  • What is mobile computing? Write any two applications.
  • Differentiate between OMR and OCR.
  • Write any two differences between impact and non-impact printers.
  • Convert 5 GB into KB. (Ans: 5 × 1024 × 1024 = 5,242,880 KB) •
  • Long questions (5 marks) Exam tip :- Always draw a neat diagram (block diagram, bus system, memory hierarchy) and a difference table wherever possible — they easily earn full marks! — end of Unit 1 — Explain the generations of computers with suitable examples.
  • Draw the block diagram of a computer and explain each unit.
  • What is a bus? Explain data, address and control bus with diagram.
  • What is a microprocessor? Explain its components and functions.
  • Explain the classification of computers on the basis of size.
  • Explain different types of secondary storage devices.
  • Differentiate between computer architecture and organization.
  • Explain USB, HDMI and expansion slots. •

Related chapters in Computer Science: Class 11 Computer System notes, Class 11 Computer Software and Operating System notes, Class 11 Application Package notes.

Practice

Important Questions

1
MCQ1 markModel Question · Set B

What is the octal equivalent of the decimal number ?

A

B

C

D

2
MCQ1 markModel Question · Set A

What is the binary equivalent of the decimal number ?

A

B

C

D

3
Short5 marksModel Question · Set B

Convert into its decimal equivalent and explain the conversion process.

4
Short5 marksModel Question · CDC

Describe the decimal to binary number conversion process with example.

1
MCQModel Question · CDC

How to represent Boolean F(x,y) = x.y in logic gate?

2
Short5 marksModel Question · Set A

Describe the process of converting a decimal number into a binary number with an example.

5 more questions locked

Upgrade to a paid plan to view all important questions

Upgrade to View All

Exam

This unit focuses on number systems used in computing and the fundamentals of Boolean logic. Students learn decimal, binary, octal, and hexadecimal number systems, including their conversions and arithmetic operations. It also introduces Boolean algebra, truth tables, logic gates, Boolean expressions, and important Boolean laws used in digital computer systems.

This page covers Number System and Boolean Logic, chapter 2 of 8 in the Class 11 Computer Science syllabus set by the National Examination Board (NEB). 9 important questions for this chapter are available, each with a model answer.

Read through the notes above, then try each important question for this chapter before checking its solution — comparing your working against past NEB and model questions is one of the most efficient ways to revise.