WishWasTraining Academy
CDS exam school
← home
Chapter K4-2 · 2 of 2 in Computers · 22 min read

Networks, the internet, security, file formats, office software and new technology (AI, quantum, mobile)

About 12 real CDS questions on this chapter in the 6 papers from CDS I 2024 to CDS II 2026.

Try three questions free ↓
This chapter has a video lessonWatch it, practise with a drill and keep your record, all with a free account. No fee, no card.

Why this chapter matters. This chapter gave 12 questions in the 6 papers from CDS I 2024 to CDS II 2026: one in CDS I 2024, none in CDS II 2024, then four, two, two and three in the four papers since the block of five computer questions began. Together with the last chapter that is about 4 marks in every paper, from a subject the UPSC notice does not name. Security came most often: the firewall was asked twice and malware once. The rest were spread thinly: one protocol, software ports, CDMA, the MP3 format, a markup language, the MS Word window, multimedia, artificial intelligence and the qubit. Almost all were single facts, so this chapter is mostly tables. Learn the tables of sections 2, 3 and 5 first.

What you will be able to do

  • Name the kinds of network and network device, and place a protocol in the right layer of TCP/IP.
  • Tell a software port from a hardware port, and an IP address from a MAC address.
  • Name each kind of malware and attack, and say what a firewall does and does not do.
  • Recognise common file formats, the parts of an office program, and the basic terms of artificial intelligence, quantum computing and mobile technology.

Before you start you should know: bits, bytes and megabytes, and what system software is (Chapter K4-1).

1. Networks and their devices

A network is two or more computers joined so that they can share data and devices.

Network Area covered Example
PAN (personal area network) a few metres around one person a phone and its Bluetooth earphones
LAN (local area network) a room, a building, a campus an office or a computer laboratory
MAN (metropolitan area network) a city a cable television network
WAN (wide area network) a country or the world the internet, the largest WAN

The pattern in which the computers are joined is the topology. In a bus all share one cable. In a star each is joined to a central device, so one broken cable cuts off only one computer. In a ring each is joined to two neighbours. In a mesh each is joined to every other, which is costly but the most reliable.

Device Job
Network interface card (NIC) joins a computer to the network; carries the MAC address
Modem changes digital signals to analog and back (modulator-demodulator)
Repeater makes a weak signal strong again
Hub passes what it receives to all its ports
Switch passes what it receives only to the device it is meant for
Router joins different networks and chooses the path for each packet, using IP addresses
Gateway joins networks that use different protocols

In the client-server model a client (your browser) asks, and a server (the website's computer) answers.

2. The internet and its protocols

The internet is the worldwide network of networks. It grew from ARPANET, a network of the United States defence research agency that began in 1969. The World Wide Web (WWW) is not the same thing: it is the collection of linked pages that we reach over the internet. Tim Berners-Lee proposed the Web at CERN in 1989. Email is another service on the internet.

Data travels in small pieces called packets. A protocol is a set of rules that both sides follow. The internet runs on a family of protocols called TCP/IP, arranged in four layers.

Layer of TCP/IP Job Protocols
Application serves the user's programs HTTP and HTTPS (web pages), FTP (file transfer), SMTP (sending mail), POP3 and IMAP (receiving mail), DNS (names to addresses), TELNET (logging in to a distant computer), SSH (the same, encrypted)
Transport end-to-end delivery between programs TCP (reliable, checks and re-sends), UDP (fast, no checking)
Internet addressing and routing of packets IP
Network access (link) moving bits over one cable or radio link Ethernet, Wi-Fi

CDS II 2026 listed IP, TCP, TELNET and Go-back-N and asked which works at the application layer: TELNET. IP is in the internet layer and TCP in the transport layer. Go-back-N is not an application protocol at all; it is a method of re-sending lost data.

The older teaching model is the OSI model of seven layers. From the bottom: Physical, Data Link, Network, Transport, Session, Presentation, Application.

3. Addresses and ports

Term What it is Looks like
MAC address the fixed hardware address of a network card; 48 bits 12 hexadecimal digits
IP address the address of a device on the network; it can change IPv4: 32 bits, four numbers from 0 to 255 with dots. IPv6: 128 bits, written in hexadecimal
Domain name a name people can remember in place of an IP address upsc.gov.in
DNS (Domain Name System) the service that finds the IP address for a domain name
URL (Uniform Resource Locator) the full address of one page or file begins with http or https

Two meanings of "port". A hardware port is a socket on the machine, such as USB or HDMI. It connects external devices and peripherals: a pen drive, a camera, a scanner. A software port is a number from 0 to 65535 attached to a connection. One server may run many services at one IP address, and the port number tells which service a packet is for. So a software port connects a client's program to the right program on the server, and it identifies the service.

Service Port number
FTP 21
SSH 22
TELNET 23
SMTP (sending mail) 25
DNS 53
HTTP 80
HTTPS 443

CDS II 2025 asked for the uses of software ports. Connecting a client to a server and identifying services such as email and file transfer are the uses. Connecting external devices and peripherals is the work of hardware ports.

4. Mobile and wireless technology

Generation What it brought
1G analog voice calls only
2G digital voice and SMS; the GSM and CDMA standards
3G mobile internet along with voice
4G fast broadband; video calls and streaming
5G still faster, with very little delay; meant for many connected devices

Many phones must share the same radio band. The ways of sharing are called multiple access methods.

Method How users are kept apart
FDMA (frequency division) each call gets its own frequency
TDMA (time division) calls take turns in short time slots on one frequency; GSM uses this
CDMA (code division) all calls use the same band at the same time; each has its own code, and the receiver picks out the call that carries its code

CDS I 2026 asked where CDMA is mainly used: mobile phone communication.

Short-range links: Bluetooth joins devices within about 10 metres. Wi-Fi makes a wireless LAN. NFC (near field communication) works over a few centimetres and is used for tap-to-pay cards.

5. Security: threats and defences

Malware means malicious software: any program written to do harm.

Malware How to recognise it
Virus attaches itself to a file or program; spreads when a person runs or shares that file
Worm a program on its own; spreads through the network by itself, with no host file
Trojan horse pretends to be a useful program; does not copy itself; often opens a back door for an attacker
Ransomware locks or encrypts the user's files and demands payment (WannaCry, May 2017)
Spyware secretly records what the user does and sends it out; a keylogger records every key pressed
Adware forces advertisements on the user

Some terms name an act, not a program. They are not malware.

Attack Meaning
Hacking entering a computer or network without permission
Password cracking finding a password by trying or guessing
Phishing a false email or website that tricks the user into giving a password or bank details
Denial of service (DoS) flooding a server with requests so that real users cannot reach it
Spoofing pretending to be another computer or sender

CDS I 2025 listed hacking, password cracking, a Trojan horse and a firewall, and asked which is a malicious software: the Trojan horse.

The firewall. A firewall stands between a trusted network (or one computer) and an outside network such as the internet. It may be hardware, software or both. It examines each packet coming in or going out against a set of rules, and lets it pass or blocks it.

A firewall does A firewall does not
examine every packet that arrives clean a virus out of a file (antivirus software does)
prevent unauthorised access from outside record everything the user does (spyware does)
block suspicious traffic join telephones or computers together (a switch or exchange does)

Both firewall questions were built from this table. CDS I 2025 asked for its purpose. CDS II 2025 listed four jobs and three were right; the wrong one was interconnecting telephones.

Other defences: antivirus software finds and removes malware. Encryption scrambles data so that only the right receiver can read it. HTTPS is HTTP with encryption, shown by the lock sign in the browser. A digital signature proves who sent a message. A cookie is not malware: it is a small file a website keeps on your computer to remember you.

6. File formats, multimedia and markup languages

Multimedia is text, graphics, images, audio and video combined, usually so that the user can interact with it. CDS I 2025 asked for this term; two of the wrong options, JPEG and PNG, are only image formats.

Kind Formats What to remember
Image JPEG, PNG, GIF, BMP JPEG is lossy and suits photographs. PNG is lossless and allows a transparent background. GIF allows simple animation. BMP is not compressed
Audio WAV, MP3 WAV is not compressed. MP3 is lossy
Video MP4, AVI, MKV
Document TXT, DOCX, PDF PDF (Portable Document Format) looks the same on every machine
Spreadsheet, slides XLSX, PPTX
Compressed archive ZIP lossless

Lossy compression throws away detail that people hardly notice, so the file is much smaller. Lossless compression gives back the file exactly.

How big is a song? Music on an audio CD is not compressed and takes about 10 MB a minute. MP3 cuts that to about one-tenth, about 1 MB a minute at the usual quality. So one hour of music is about 600 MB on a CD and about 50 to 60 MB as MP3. CDS I 2026 asked for the MP3 figure for 60 minutes; of the four options, 50 MB was the one of the right size.

Markup languages put tags around text to say what each part is.

Language What to remember
SGML (Standard Generalised Markup Language) an international (ISO) standard of 1986; the parent of the other two; defines types of document; does not depend on any hardware or operating system
HTML (HyperText Markup Language) the language of web pages; a fixed set of tags; built on SGML
XML (eXtensible Markup Language) a simpler form of SGML for storing and carrying data; users make their own tags

CDS II 2026 asked which statement is not true of SGML. The false one said it depends on the computer's hardware.

7. Office software

Program Kind File type
MS Word word processor: letters and reports .docx
MS Excel spreadsheet: tables and calculation .xlsx
MS PowerPoint presentation: slides .pptx
MS Access database .accdb

The Word window.

Part Job
Title bar shows the name of the document
Toolbar (the ribbon in newer versions) buttons for commands: font, bold, and the four alignment buttons
Ruler shows and sets the margins, the indents of a paragraph and the tab stops
Status bar at the bottom: page number, word count
Scroll bar moves the page up, down or sideways

Text can be aligned four ways: left (Ctrl+L), centre (Ctrl+E), right (Ctrl+R) and justified (Ctrl+J), which makes both edges straight.

CDS II 2026 asked which of the ruler bar, toolbar, status bar and scroll bar is used to set the alignment of the content. The status bar and scroll bar are certainly not. Between the other two, the alignment buttons are on the toolbar, and the ruler sets indents, margins and the alignment of tab stops. We have not seen the official answer key for this question, so we do not give one here. Learn both jobs.

Excel in four facts. A file is a workbook, made of worksheets. A cell is named by its column letter and row number, such as C5. A formula begins with the equals sign. SUM, AVERAGE, MAX, MIN and COUNT are built-in functions.

Shortcuts common to all three: Ctrl+C copy, Ctrl+X cut, Ctrl+V paste, Ctrl+Z undo, Ctrl+S save, Ctrl+P print, Ctrl+A select all, Ctrl+B bold. In PowerPoint, F5 starts the slide show.

8. New technology

Term Meaning
Artificial intelligence (AI) making a machine do what needs human intelligence: learning, reasoning, problem solving and decision making. John McCarthy coined the term in 1956
Machine learning a part of AI: the program learns from data and is not given every rule by a programmer
Deep learning machine learning with many-layered neural networks, loosely modelled on the brain
Natural language processing AI that works with human language: translation, speech to text, chatbots
Turing test Alan Turing's test (1950): can a machine's replies be told apart from a person's?
Internet of Things (IoT) everyday objects with sensors, connected to the internet
Cloud computing using storage, software and computing power over the internet in place of your own machine. Three services: infrastructure (IaaS), platform (PaaS) and software (SaaS)
Big data data too large and too fast for ordinary tools; described by volume, velocity and variety
Blockchain a shared record kept in linked blocks on many computers, so that no one can quietly change it; Bitcoin runs on it

CDS I 2025 asked for the characteristic of AI: it copies human decision making. Storing information is something any database does.

Quantum computing. An ordinary (classical) computer works with bits, each 0 or 1. A quantum computer works with qubits (quantum bits). A qubit can be in a mix of 0 and 1 at once, called superposition. Two qubits can be linked so that the state of one depends on the other, called entanglement. These two properties let a quantum computer try many possibilities together for some kinds of problem, such as breaking codes. CDS I 2024 asked where a qubit is used: in quantum computers.

What the papers have asked

Paper The idea asked The answer in one line
CDS I 2024 where a qubit is the unit of information in quantum computers
CDS I 2025 the purpose of a firewall to prevent unauthorised access to a computer through the internet
CDS I 2025 which of four terms is a malicious software the Trojan horse; hacking and password cracking are acts, a firewall is a defence
CDS I 2025 text, graphics, video, audio and images combined and interactive multimedia
CDS I 2025 the characteristic of artificial intelligence it copies human decision making
CDS II 2025 the uses of software ports joining a client to a server, and identifying services such as email and file transfer
CDS II 2025 which listed jobs a firewall is deployed for examining each packet, preventing unauthorised access, blocking suspicious activity
CDS I 2026 storage for 60 minutes of MP3 music about 50 MB (about 1 MB a minute)
CDS I 2026 the main use of CDMA mobile phone communication
CDS II 2026 the application layer protocol among four TELNET
CDS II 2026 what is not true of SGML that it depends on the hardware; it is independent of hardware and operating system
CDS II 2026 the part of the Word window that sets alignment toolbar holds the alignment buttons, ruler sets indents and tab stops; official key not seen

Worked examples

Example 1. Which one of the following spreads from computer to computer over a network by itself, without attaching to any file? (a) Virus (b) Worm (c) Trojan horse (d) Phishing

A worm is a complete program that copies itself across the network. A virus needs a host file and a person to run it. A Trojan horse does not copy itself at all. Phishing is a trick played on the user, not a program. The tempting wrong option is the virus, because both spread. Answer (b).

Example 2. Consider the following statements: 1. TCP works at the transport layer. 2. FTP and SMTP work at the application layer. 3. IP guarantees that every packet is delivered. Which of the statements given above are correct?

Statements 1 and 2 are straight from the table in section 2. Statement 3 is wrong: IP only addresses and routes packets and makes no promise. The checking and re-sending is done by TCP, one layer above. Answer: 1 and 2 only.

Example 3. Match the lists. List I: A. HTTPS, B. DNS, C. SMTP, D. FTP. List II: 1. Sending electronic mail, 2. Moving files between two computers, 3. Finding the IP address for a name, 4. Web pages over an encrypted link.

HTTPS is the secure form of HTTP (A-4). DNS turns a domain name into an IP address (B-3). SMTP sends mail (C-1). FTP transfers files (D-2). Answer: A-4, B-3, C-1, D-2.

Example 4. A song is recorded as an MP3 file at 128 kilobits per second. About how large is a 5-minute song? (Take 1 MB as 1,000,000 bytes.)

128 kilobits a second is ​128000 \div 8 = 16000​ bytes a second. Five minutes is 300 seconds. ​16000 \times 300 = 4{,}800{,}000​ bytes, which is 4.8 MB, or about 5 MB. That agrees with the rule "about 1 MB a minute". An option of 50 MB would be the size without compression. Answer: about 5 MB.

Example 5. Consider the following statements about a firewall: 1. It can be hardware, software or both. 2. It removes a virus from an infected file. Which of the statements given above is/are correct?

Statement 1 is correct. Statement 2 describes antivirus software. A firewall only filters traffic between networks by rules. Answer: 1 only.

Mistakes that cost marks

  1. Calling every threat "malware". Hacking, phishing and password cracking are things an attacker does. Malware is a program: virus, worm, Trojan horse, ransomware, spyware, adware.
  2. Mixing the layers. TCP and UDP are transport. IP is internet. Everything with a user-facing job (HTTP, FTP, SMTP, DNS, TELNET) is application.
  3. Treating the internet and the Web as one. The internet is the network. The Web is one service on it, as email is another.
  4. Mixing the two kinds of port. A USB port is hardware and takes a cable. Port 80 is a number in software and names a service.

Quick check

Do these without help. Answers are at the end.

  1. Which device joins two different networks and chooses the path for each packet?
  2. How many bits are there in an IPv4 address, and in an IPv6 address?
  3. Which malware locks the user's files and demands payment?
  4. Is PNG a lossy or a lossless image format?
  5. What is the unit of information in a quantum computer, and how does it differ from a bit?

Read and watch more, free

No free book is written for the CDS computer block. The sources below cover this chapter at the right level. The NCERT books are in English only; the simpler NIOS course has a Hindi edition.

What Where Language
Textbook, networks and security NCERT Class 12 Computer Science, the whole book as one download: Chapter 10 "Computer Networks", Chapter 11 "Data Communication", Chapter 12 "Security Aspects" English
Textbook, new technology NCERT Class 11 Computer Science, the whole book as one download: Chapter 3 "Emerging Trends" (AI, big data, IoT, cloud, blockchain) English
Self-study notes NIOS Senior Secondary Computer Science (330): lessons 5 Data Communication and Networking, 6 Communications on Internet, 8 to 10 on documents, spreadsheets and presentations, 26 New Trends in Computing English
Self-study notes, simpler NIOS Data Entry Operations (336): word processing, spreadsheet, Introduction to Internet English, Hindi
The real papers UPSC previous question papers (General Knowledge booklets from CDS I 2025 onwards have the computer block) English, Hindi
Video, past questions Reveal GK: CDS past questions by subject and topic (look for the science and technology parts) Hinglish
Video, topic by topic CDS Wallah: CDS Exam Full Playlist Hinglish

No free video course made for the CDS computer questions was found. The videos were chosen from their titles, length and views; they have not yet been watched by a teacher.

Answers to the quick check

  1. A router.
  2. 32 bits and 128 bits.
  3. Ransomware.
  4. Lossless.
  5. The qubit. A bit is either 0 or 1; a qubit can be in a mix of both at once (superposition).

Next chapter: Ancient India: Indus Valley to the Guptas.

Free · no sign-up

Try three questions on this chapter

Exam-pattern questions from this chapter's drill. Pick an answer for each, then check.

  1. Question 1 of 3
    In which method of sharing a radio channel do the calls on one frequency take turns in short time slots?
  2. Question 2 of 3
    Consider the following statements:
    1. A qubit can be in a mix of the states 0 and 1 at the same time.
    2. In machine learning, a program learns from data and is not given every rule by a programmer.
    3. 'Software as a service' means software that the user must install from a disc on his own computer.
    Which of the statements given above are correct?
  3. Question 3 of 3
    Consider the following statements:
    1. An IPv4 address is 32 bits long.
    2. A MAC address belongs to a network card and is 48 bits long.
    3. An IPv6 address is 64 bits long.
    Which of the statements given above are correct?
Free sign-up

You have read the chapter. Now make it stick.

A free account adds the video lesson, a drill of ten questions on this chapter marked like the exam, the timed mock papers, a study plan to your exam date and your own record of what you have done. No fee, no card.

The examples and questions in this chapter are WishWas's own, written in the pattern of the paper; "What the papers have asked" describes, in our words, questions in the official UPSC papers named. Check any figure that can change against a current source. The links under “Read and watch more” go to free material on other sites; nothing is copied.