PrajaPrep

Computer Awareness · 8 min

Computer fundamentals: hardware, memory, units

Lesson

A computer takes input, processes it in the CPU and gives output. Inside the CPU sit three parts. The ALU does arithmetic and logic, the control unit (CU) directs the operations, and the registers are the fastest storage in the machine.

Memory is arranged by speed, fastest first: registers, then cache, then RAM, then secondary storage such as an SSD or a hard disk. RAM is volatile, so it loses its data when the power goes. ROM is non-volatile and holds the start-up instructions, which is the BIOS or firmware.

In units, 1 nibble is 4 bits and 1 byte is 8 bits, and each step from KB to MB to GB to TB to PB is a multiplication of 1024. In number systems, binary is base 2, octal is 8, decimal is 10 and hexadecimal is 16, with digits 0 to 9 and A to F.

Input and output devices of a computer

An earlier page on this lesson already walks through the CPU, memory and units of data. This addition stays with the devices that feed a computer and the devices that bring work back out. It does not reteach registers, RAM, or the 1024 steps from kilobyte to petabyte as if they were this cut.

An input device sends data into the computer. The usual school list includes the keyboard and the mouse, a scanner, a microphone, and a few specialised readers. MICR, or magnetic ink character recognition, is the usual way banks read the characters on a cheque. OCR, or optical character recognition, reads printed or written text into a machine. OMR, or optical mark recognition, reads marks on a pre-printed sheet, the usual example being an exam answer sheet. A barcode reader reads the printed bars on a label. An output device sends results out. A monitor displays, a speaker plays sound, a plotter draws large line work such as maps or plans, and a printer puts marks on paper. School books often split printers into impact printers, such as a dot-matrix printer that strikes the page, and non-impact printers, such as inkjet and laser printers, which do not strike the page. The trap is to treat MICR, OCR and OMR as if they were the same reader, or to call a monitor an input device, or to reteach the CPU and memory as if they were this list.

Papers ask which device is input or output, what MICR, OCR and OMR each read, and how an impact printer differs from a laser printer. They should not stop at naming the CPU.

Keyboard, mouse, scanner, MICR, OCR, OMR and barcode readers are usual input devices. Monitor, speaker, plotter and printer are usual output devices. MICR reads cheque characters; OCR reads text; OMR reads marks on a sheet. A dot-matrix printer is an impact printer; inkjet and laser printers are non-impact.

Treating MICR, OCR and OMR as the same reader, calling a monitor an input device, or reteaching the CPU and memory as if they were this list.

The earlier lesson already has the CPU with the ALU and the control unit, RAM against ROM, the 1024 steps between memory units, and the usual input and output devices such as MICR, OCR and OMR. Those points may be used as already known. This cut does not retell them as if they were new. It stays with language translators, and with the usual school examples of high-level languages.

In the usual school account of this cut, an assembler translates assembly language into machine language. A compiler translates a whole high-level program into machine language before the program is run, and usually produces an object program. An interpreter translates and runs the program line by line, without a separate object program in the usual school telling. Usual school examples of high-level languages include FORTRAN, COBOL, C, Java and Python; a later official language name, or a later popular language, should be read if the list has moved, not frozen as the only key. The trap is to swap compiler with interpreter, or to reteach the already-taught CPU and memory units as if they were this cut.

Computer generations and the usual school language marks

The earlier lesson already covers hardware, memory and units of storage. Those marks stay waypoints. This cut is the usual school story of computer generations, and a short list of early programming languages. In the usual school account, the first generation used vacuum tubes and was often programmed in machine language. The second generation used transistors and is usually remembered with assembly language. The third generation used integrated circuits and is usually remembered with high-level languages coming into wider use. The fourth generation is the usual school mark of the microprocessor and the personal computer. School notes sometimes add a fifth generation around later, denser chips and work on artificial intelligence; that mark should be read as a loose school label, not as a later official product name frozen here. On the language side, school notes often remember FORTRAN and COBOL as early high-level languages, and C as a later widely taught language, without retelling the already-taught hardware-and-units lesson as if it were this history cut.

Memory hierarchy and storage devices, one layer deeper

The earlier lesson already covers hardware, the CPU parts, and the usual memory order: registers, cache, RAM, SSD, HDD, with RAM volatile and ROM non-volatile. Those marks stay waypoints. This cut goes one step deeper on the same hierarchy. Cache is usually SRAM, which is faster and more expensive per bit; main memory is usually DRAM, which is denser and cheaper. In the ROM family, PROM is programmed once, EPROM can be erased with ultraviolet light, and EEPROM can be erased electrically and updated in the machine. Secondary storage is grouped in the usual school list as magnetic (a hard disk or a tape), optical (a CD or a DVD), and flash (an SSD or a USB drive). Virtual memory, in the usual school wording, lets the machine use disk as if it extended main memory. As one climbs the hierarchy, access time falls and capacity usually falls; as one goes down, capacity rises and access is slower. A later official device size should be read, not frozen as the only key. The trap is to swap SRAM with DRAM, to treat EEPROM as if it could be written only once, or to retell only the already-taught registers–cache–RAM–SSD–HDD list as if it were this whole page.

Remember these

The CPU is the ALU, the control unit and the registers together. Memory runs in the order registers, cache, RAM, SSD, HDD; RAM is volatile and ROM is non-volatile.

One byte is 8 bits, and each step from one unit to the next multiplies by 1024.

Why the paper asks this

IBPS Clerk, IBPS PO Mains and LIC Assistant carry 5 to 20 computer questions, and fundamentals are the largest share of them. SSC CGL and CHSL Tier-II also run a computer module.

Worked example

The binary number 1011 becomes 1×8 + 0×4 + 1×2 + 1×1. That is 8 + 0 + 2 + 1, which is 11 in decimal.

Common trap

Two mix-ups get confused here: calling cache memory secondary storage, and taking 1 KB as 1000 bytes in a computer-memory question. Cache sits second in the speed order, after the registers, while secondary storage means an SSD or a hard disk. The unit step is a multiplication of 1024, not 1000.

Source: Original PrajaPrep note, written from the bank and SSC syllabi and past-paper patterns (not affiliated).

Sign up to continue learning

This lesson is free to read. Sign up free to open the next lesson in the app, keep your progress, and practise questions on this topic.

Sign up to continue learning