Computer Science and IT‹›⌂ 0:00 studied

Module 13 · 18 min read · Free chapter

Computer fundamentals for RRB JE IT and IT officer exams

In short

A computer takes input, processes it in the CPU (ALU, control unit, registers), keeps working data in volatile RAM and stores files on non-volatile disks. In exams 1 KB is 1024 bytes, while disk makers use 1 GB = 10⁹ bytes. A compiler translates a whole program at once, and an interpreter runs it line by line.

See it in 3DInside a computer: CPU, RAM, storage, power, input and output. Turn it, cut it open, or just press Watch.
What are you preparing for? We show the practice and previous year questions of your exam.

Start from zero: a computer is a reservation counter

Think of a railway reservation counter. A passenger hands over a filled form, the clerk reads it, works out the fare and the berth, and hands back a printed ticket. The clerk keeps the forms he is working on spread on his desk, and the old charts sit in a steel cabinet behind him.

A computer works in the same way. The form is the input, the clerk is the processor (CPU), the desk is the main memory (RAM), the cabinet is the storage (hard disk or SSD) and the ticket is the output. The desk is small but quick to reach, while the cabinet is huge but slow to open, which is exactly the trade-off between RAM and storage.

When the counter closes at night, the clerk clears his desk, but the cabinet keeps its registers. In the same way, RAM loses its contents when power goes off, and storage keeps them. This one picture, input, process, store and output, is the whole of computer fundamentals in small.

Why it matters. RRB JE IT, IBPS SO IT and state Assistant Programmer papers ask several quick questions on these basics in every sitting. They look easy, but options are written to trap anyone who mixes up RAM and ROM, KB and kB, or a compiler and an interpreter.

Generations of computers

Computers are grouped into generations by the switching device inside them. Each new device made machines smaller, faster, cheaper and more reliable. The year ranges below are the ones most often quoted, but books shift them by a few years, so exams test the device, not the exact year.

Generation Switching device Typical features
First (about 1940s to mid-1950s) Vacuum tubes Room-sized, much heat, machine language, punched cards
Second (mid-1950s to mid-1960s) Transistors Smaller and cooler, assembly language, early high-level languages
Third (mid-1960s to early 1970s) Integrated circuits (ICs) Keyboards and monitors, operating systems, multiprogramming
Fourth (early 1970s onwards) Microprocessors built with VLSI Personal computers, GUI, networks and the internet
Fifth (present and beyond) ULSI chips, parallel processing Artificial intelligence, natural language, voice input

The biggest jump came with the microprocessor, which put the whole CPU on one chip. That single change made the desktop computer, and later the phone in your pocket, possible.

Computers are also classified by size and power. Supercomputers do the heaviest scientific work such as weather forecasting, mainframes serve banks and railways with thousands of users at once, minicomputers sit in between, and microcomputers are desktops, laptops and phones. By type of data, analog computers work on continuous quantities, digital computers on discrete 0s and 1s, and hybrid computers combine both, as in a hospital patient monitor.

Why it matters. Matching the device to the generation is one of the most common one-mark questions. Knowing the logic, each device replacing a bigger and hotter one, lets you answer it without memorising year lists.

Hardware: CPU, memory, storage and I/O devices

The CPU is the brain of the computer and has three parts. The arithmetic logic unit (ALU) adds, subtracts and compares, the control unit (CU) fetches each instruction, decodes it and sends signals to the other parts, and registers are a few tiny storage cells inside the CPU that hold the data being worked on. The CPU talks to memory and devices over the system bus, which has an address bus, a data bus and a control bus.

A CPU's speed is often quoted by its clock rate. A 3 GHz clock ticks 3×1093 \times 10^9 times a second, so one tick lasts

13×109 s≈0.33 ns\frac{1}{3 \times 10^9}\ \text{s} \approx 0.33\ \text{ns}

Modern chips also have several cores, each a complete processor, so a quad-core chip can run four streams of instructions at once.

Main memory comes in two families. RAM (random access memory) can be read and written and is volatile, so it forgets everything when power goes. SRAM stores each bit in a flip-flop, which is fast and costly and is used for cache, while DRAM stores each bit as charge on a tiny capacitor that leaks, so it must be refreshed thousands of times a second; it is cheaper and is used as main memory. ROM (read-only memory) is non-volatile and holds the start-up firmware (BIOS or UEFI) that runs when you switch on.

ROM type How it is written or erased
Mask ROM Written at the factory; cannot be changed
PROM Programmed once by the user; then fixed
EPROM Erased by ultraviolet light through a window, then rewritten
EEPROM Erased electrically, byte by byte
Flash memory Erased electrically in blocks; used in pen drives and SSDs

Storage keeps data for the long term. A hard disk drive (HDD) stores bits magnetically on spinning platters read by a moving head, a solid-state drive (SSD) uses flash chips with no moving parts and is much faster, and optical discs (CD, DVD, Blu-ray) are read by a laser. Arranged by speed, the memory hierarchy runs from registers to cache to RAM to SSD to HDD to tape, and the cost per byte falls as size grows.

Input and output devices connect the computer to people. Keyboard, mouse, scanner, microphone and webcam are input devices, and so are the barcode reader, OMR (optical mark reader, used for exam answer sheets) and MICR (magnetic ink character reader, used for bank cheques). Monitor, printer, speaker and projector are output devices, while a touch screen does both.

Why it matters. Questions such as "which memory is volatile?", "which ROM is erased by UV light?" and "which device reads cheques?" appear in almost every IT officer paper. The holo tour of the cabinet shows where each of these parts actually sits.

Units of storage and number systems

Everything inside a computer is a bit, a 0 or a 1. Four bits make a nibble and eight bits make a byte, which is enough to store one English character. Bigger units go up in steps of 210=10242^{10} = 1024 in the convention used in exams:

Unit Equals In bytes
1 KB (kilobyte) 1024 bytes 2102^{10}
1 MB (megabyte) 1024 KB 2202^{20}
1 GB (gigabyte) 1024 MB 2302^{30}
1 TB (terabyte) 1024 GB 2402^{40}
1 PB (petabyte) 1024 TB 2502^{50}

The 1024 versus 1000 note. Disk and pen-drive makers use decimal units, where 1 GB means 10910^9 bytes, while operating systems often count in powers of 1024. To end the confusion, the IEC named the binary units KiB, MiB, GiB and TiB and kept kB, MB and GB for powers of 1000. In an exam, take 1 KB = 1024 bytes unless the question says otherwise.

Worked example 1. Why does a new 500 GB disk show only about 465 GB? The maker means 500×109500 \times 10^9 bytes, and the operating system divides by 2302^{30}:

500×109230=5×10111,073,741,824≈465.66 GiB\frac{500 \times 10^9}{2^{30}} = \frac{5 \times 10^{11}}{1{,}073{,}741{,}824} \approx 465.66\ \text{GiB}

No space is missing; only the unit has changed.

Worked example 2. How long does a 2 GB file take to download at 100 Mbps? Network speeds are decimal and in bits, so take 2 GB as 2×1092 \times 10^9 bytes, which is 16×10916 \times 10^9 bits. The time is 16×109100×106=160\dfrac{16 \times 10^9}{100 \times 10^6} = 160 s, a little under three minutes.

Number systems. Computers use binary (base 2), and people use octal (base 8) and hexadecimal (base 16, with A to F standing for 10 to 15) as short forms of binary. One octal digit is exactly 3 bits and one hex digit exactly 4 bits, so conversion is simple grouping.

Worked example 3. Convert 156 to binary, octal and hexadecimal. Since 156=128+16+8+4156 = 128 + 16 + 8 + 4, the binary form is 10011100. Grouping in threes from the right gives 010 011 100, which is octal 234, and grouping in fours gives 1001 1100, which is hex 9C. Check: 2×64+3×8+4=1562 \times 64 + 3 \times 8 + 4 = 156 and 9×16+12=1569 \times 16 + 12 = 156.

The full rules for signed numbers and floating point are in number representation and computer arithmetic, but this grouping trick alone answers most fundamentals questions.

Why it matters. Unit and base conversions are quick marks, yet a wrong factor of 1000 or 1024 picks the wrong option every time. Writing the powers of 2 next to each step keeps you safe.

Software, the operating system and language translators

Hardware does nothing without software, the programs that tell it what to do. System software runs the machine itself: the operating system, device drivers and language translators. Utility software keeps the system healthy, such as antivirus, backup, file compression and disk cleanup tools. Application software does the user's own job, such as a word processor, a spreadsheet, a browser or a railway booking app.

The operating system (OS) sits between the user and the hardware. It does five jobs: process management (which program runs on the CPU and when), memory management (which part of RAM each program gets), file management (folders, names and permissions), device management (drivers and I/O queues) and security (log-in and access rights). It also gives the user an interface, either a command line or a graphical user interface (GUI) with windows and icons.

Operating systems come in several types. A batch OS runs jobs one after another without a user waiting, a multiprogramming OS keeps several programs in memory so the CPU is never idle, and a time-sharing OS gives each user a small time slice so that all feel served at once. A real-time OS must answer within a fixed deadline, as in an airbag or a railway signal, while distributed and mobile operating systems run across many machines or on phones. How processes and threads work in detail is taught in system calls, processes and threads.

Language translators. A CPU understands only machine language, the 0s and 1s of its instruction set. Assembly language writes each machine instruction as a short word such as ADD or MOV, and an assembler turns it into machine code. High-level languages such as C, Java and Python are close to English and need a compiler or an interpreter.

Point Compiler Interpreter
Unit of translation The whole program at once One statement at a time
Errors All listed after translation Stops at the first error
Output A separate executable file No separate file; runs directly
Speed of running Fast, since translation is done once Slower, since it translates every run
Typical languages C, C++ Python, JavaScript (mostly)

After compiling, a linker joins the program's object files with library code into one executable file, and a loader copies that file into memory and starts it.

Why it matters. "Which translator converts the whole program at once?" and "which is not system software?" are favourite questions. Knowing what each tool takes in and gives out answers them all.

Office applications: documents, spreadsheets, slides and databases

Almost every office uses an office suite, a bundle of four kinds of programs. Exams name them generically, so learn the features rather than any brand.

A word processor creates documents such as letters and reports. Its key features are formatting (font, bold, alignment), headers and footers, tables, spell check, find and replace, and mail merge, which joins one letter with a list of names and addresses to print hundreds of personalised copies.

A spreadsheet is a grid of cells. Each cell is named by its column letter and row number, so B3 is column B, row 3, and a range such as B2:B6 means all cells from B2 to B6. A formula always starts with =, as in =B2+B3, and built-in functions do common work: =SUM(B2:B6) adds a range, =AVERAGE(B2:B6) finds the mean, and =MAX and =MIN find the extremes.

Worked example 4. A clerk enters marks 72, 65, 80, 58 and 90 in B2 to B6. The formula =SUM(B2:B6) gives 72+65+80+58+90=36572 + 65 + 80 + 58 + 90 = 365, and =AVERAGE(B2:B6) gives 3655=73\dfrac{365}{5} = 73. If the clerk copies a formula one row down, a relative reference such as B2 shifts to B3, while an absolute reference, marked with a dollar sign before the column letter and row number, stays fixed.

Presentation software builds slides with text, pictures, charts, animations and transitions, and a slide show runs them full screen. Database software stores records in tables, finds them with queries, enters them through forms and prints them as reports. A database is better than a spreadsheet once the data grows large or many people must use it together.

A few keyboard shortcuts work in almost every program: Ctrl+C copies, Ctrl+X cuts, Ctrl+V pastes, Ctrl+Z undoes, Ctrl+Y redoes, Ctrl+S saves, Ctrl+P prints and Ctrl+F finds.

Why it matters. IT officer and clerk-level papers regularly ask about mail merge, cell addresses and the result of a formula. A one-line calculation like the one above earns the mark in seconds.

Internet, e-mail and cloud computing

The internet is a worldwide network of networks that all speak the TCP/IP protocols. The World Wide Web is only one service on it: a huge set of web pages joined by hyperlinks, which a browser fetches using HTTP or its secure form HTTPS. E-mail, file transfer and video calls are other services on the same internet, so the web and the internet are not the same thing.

Every web page has a URL such as https://www.example.in/notes.html. Here https is the protocol, www.example.in is the domain name and notes.html is the path to the file. The browser asks the DNS to turn the domain name into an IP address, the number that actually identifies the server, much as a phone's contact list turns a name into a number.

An ISP (internet service provider) connects homes and offices to the internet, and a search engine indexes pages so you can find them by keywords.

An e-mail address has the form user@domain, such as ravi@example.in. When you send a mail, To is the main receiver, CC (carbon copy) sends a copy that every receiver can see, and BCC (blind carbon copy) sends a copy whose address the others cannot see. Files travel as attachments, and unwanted bulk mail is spam.

Behind the scenes, SMTP pushes mail from the sender to the receiver's mail server, and POP3 or IMAP lets the receiver fetch it; IMAP keeps mail on the server so that phone and laptop stay in step. The details of these protocols are in application layer protocols.

Cloud computing means renting computing power, storage and software over the internet instead of buying your own machines, and paying only for what you use. It has five key features: on-demand self-service, broad network access, resource pooling, rapid elasticity and measured service. It is sold in three service models:

Model You get Example of use
IaaS (infrastructure as a service) Virtual machines, storage and networks; you manage the OS and apps Renting servers for a results website during exam season
PaaS (platform as a service) A ready platform to build and run your own apps A start-up deploying its app without managing servers
SaaS (software as a service) Finished software used through a browser Web-based e-mail or an online office suite

By deployment, a public cloud is shared by many customers, a private cloud serves one organisation, a hybrid cloud mixes the two, and a community cloud is shared by organisations with common needs, such as several government departments.

Why it matters. Internet and cloud questions are now standard in IT officer papers, and banks and railways run much of their work on the cloud. Knowing which layer each model hands over is the key to every "IaaS, PaaS or SaaS?" question.

Descriptive lens: how written papers ask this

Descriptive papers for IT officer posts, state Assistant Programmer exams and diploma-level tests ask about fundamentals in four ways:

  1. Draw and explain the block diagram of a computer, naming the CPU parts, memory, I/O and buses.
  2. Distinguish pairs such as RAM and ROM, SRAM and DRAM, compiler and interpreter, or system and application software.
  3. Classify with examples, such as the generations of computers or the types of operating system.
  4. Advise an office, for example on moving its records to the cloud or choosing between a spreadsheet and a database.

Practice questions (our own, not previous-year questions).

  1. Draw the block diagram of a digital computer and explain the role of the ALU, control unit, registers and system bus. (10 marks)
  2. Distinguish between a compiler and an interpreter, and explain the roles of the linker and the loader. (10 marks)
  3. A district office wants to move its land records system to the cloud. Explain IaaS, PaaS and SaaS and recommend a model with reasons. (15 marks)

Answer plan for question 2.

  • Begin by saying that both tools translate high-level code into a form the CPU can run, but they differ in how much they translate at a time.
  • Explain that a compiler translates the whole program first, reports all errors together and produces an executable file that runs fast every time.
  • Explain that an interpreter translates and runs one statement at a time, stops at the first error and makes no separate file, so it is slower but easier for testing.
  • Give a small table of differences covering unit of translation, errors, output, speed and typical languages.
  • Describe the linker, which joins object files and library code into one executable, and the loader, which places it in memory and starts it.
  • End by noting that some languages, such as Java, use both steps, compiling to bytecode that a virtual machine then runs.

Quick revision

  • Generations go vacuum tubes, transistors, ICs, microprocessors (VLSI), then AI and parallel processing.
  • The CPU has an ALU, a control unit and registers, and it talks to memory over address, data and control buses.
  • RAM is volatile; SRAM is used for cache and DRAM for main memory, and DRAM needs refreshing.
  • ROM is non-volatile; EPROM is erased by UV light, EEPROM electrically, and flash electrically in blocks.
  • The hierarchy runs registers, cache, RAM, SSD, HDD, tape, getting slower, bigger and cheaper per byte.
  • In exams 1 KB = 1024 bytes, while disk makers use 1 GB = 10910^9 bytes, and KiB, MiB, GiB are the clear binary names.
  • One octal digit is 3 bits and one hex digit is 4 bits, so 156 is 10011100, octal 234 and hex 9C.
  • System software runs the machine, utility software maintains it and application software does the user's task.
  • A compiler translates the whole program, an interpreter one line at a time, and an assembler handles assembly language.
  • A spreadsheet formula starts with =, and SUM and AVERAGE work on ranges such as B2:B6.
  • CC copies are visible and BCC copies are hidden; SMTP sends mail and POP3 or IMAP fetches it.
  • IaaS, PaaS and SaaS hand over more and more of the stack to the provider.

Check yourself

Exam-style questions on this chapter. Pick an answer to see the explanation. 0 of 15 answered

  1. Third-generation computers were built mainly with:

  2. Which part of the CPU fetches and decodes instructions?

  3. One clock cycle of a 2 GHz processor lasts:

  4. Cache memory is usually made of:

  5. Which ROM is erased by exposing it to ultraviolet light?

  6. Banks read the account details printed on cheques using:

  7. A disk sold as 500 GB (decimal) shows about how many GiB?

  8. A 2 GB file (take 2×1092 \times 10^9 bytes) is downloaded at 100 Mbps. The time taken is:

  9. The decimal number 156 in hexadecimal is:

  10. Which of these is NOT system software?

  11. An operating system that must respond within a fixed deadline, as in an airbag controller, is:

  12. Which translator converts the whole high-level program at once and lists all errors together?

  13. If B2 to B6 hold 72, 65, 80, 58 and 90, =AVERAGE(B2:B6) gives:

  14. Which mail field sends a copy whose address the other receivers cannot see?

  15. Using web-based e-mail through a browser, with nothing to install or manage, is an example of:

Previous year questions

Previous year questions for UPSC CSE will appear here once each one is checked word for word against the official question paper.

Learn with AI

A tutor that asks instead of telling, a partner that argues the other side, and this chapter told through your own district.

Tell the tutor what you are stuck on. It will guide you with questions and give the answer after a few tries.

🙋 Raise a doubt or feedback

Stuck somewhere, or spotted a mistake? Write to the ExamHike team. We usually reply within a day, and you will see the reply on My progress.

Log in to ask a doubt or send feedback →

Frequently asked questions

What is the difference between RAM and ROM?

RAM is volatile read-write memory that loses data when power goes, while ROM is non-volatile and holds start-up firmware.

Why does a 500 GB disk show about 465 GB?

The maker counts 500 × 10⁹ bytes, but the operating system divides by 2³⁰, giving about 465.66 GiB.

Which generation of computers used integrated circuits?

The third generation used ICs; transistors were the second and microprocessors the fourth.

What is the difference between IaaS, PaaS and SaaS?

IaaS rents virtual machines, PaaS gives a platform to run your apps, and SaaS gives finished software in a browser.

More in this module: IT fundamentals, security and law

Official sources

Facts in this chapter were checked against these official sources.

  1. GATE 2026 Computer Science and Information Technology (CS) syllabus, IIT Guwahati
  2. NPTEL Computer Organization and Architecture (IIT Madras, 106106166): CPU, memory, storage and I/O