Computer Ports, Cables and Connectors: Types and Uses
Complete notes on computer ports, cables and connectors for exams: serial and parallel ports, USB, HDMI, VGA, RJ-45, twisted pair, coaxial and fibre optic cables.
By GK24 Editorial Team· Published · 5 min read

A port is the socket on a computer through which a device outside it is connected, a cable is the medium that carries the signal, and a connector is the plug at the end of the cable that fits the port. Computer awareness papers in the banking and SSC examinations ask this topic as a set of one-line facts: how many pins a connector has, which port carries audio along with video, which cable resists interference, and which old port has been replaced by which new one. The facts are stable, so a single careful reading is enough, and the section below arranges them in the order in which they are asked.
Serial, parallel and the legacy ports
A serial port sends one bit at a time over a single wire. The familiar serial port on an older personal computer followed the RS-232 standard, used a nine-pin D-shaped connector called DB-9 and was known to the operating system as a COM port; it was used for modems, mice and instruments. A parallel port sends several bits at once over separate wires, which makes it faster over short distances. The parallel port of a personal computer used a twenty-five-pin connector called DB-25, was known as the LPT port, and was used mostly for printers, where the printer end of the cable carried a thirty-six-pin Centronics connector.
The PS/2 port, introduced with the IBM Personal System/2 in the late nineteen-eighties, is a six-pin mini-DIN socket used for the keyboard and the mouse. The two sockets are identical in shape, so they are colour coded: purple for the keyboard and green for the mouse. Both the serial and the PS/2 ports have been replaced in practice by USB.
USB, the universal port
- USB stands for Universal Serial Bus, and the standard first appeared in 1996.
- It is hot-swappable, that is a device may be attached or removed without restarting the computer, and plug and play, that is the operating system detects and configures the device itself.
- One USB host controller can support up to 127 devices, using hubs.
- Speeds rose with each version: 12 megabits per second in USB 1.1, 480 megabits per second in USB 2.0, 5 gigabits per second in USB 3.0, which is called SuperSpeed and whose connector is usually blue, and 10 gigabits per second and more in the versions after it.
- The connector shapes are Type-A, the familiar rectangular plug, Type-B, the squarer plug used at the printer end, the Mini and Micro forms used by older mobile phones and cameras, and Type-C, a reversible twenty-four-pin connector that can be inserted either way up.
Display and audio ports
| Port | Pins | Carries |
|---|---|---|
| VGA | 15, in three rows | Analogue video only; the connector is usually blue |
| DVI | 24 in the digital form | Digital video; the connector is usually white |
| HDMI | 19 in the standard Type-A form | Digital video and audio together, in one cable |
| DisplayPort | 20 | Digital video and audio, used mostly on computer monitors |
| 3.5 mm audio jack | Three contacts in the stereo form | Analogue audio; green for output, pink for the microphone, blue for line in |
Network ports and the cables behind them
The RJ-45 connector, properly called 8P8C because it has eight positions and eight contacts, is the plug at the end of an Ethernet cable and fits the network port of a computer. The RJ-11 connector is smaller, carries four or six contacts and is used for telephone and older modem lines. Mistaking one for the other is the commonest error in this part of the syllabus.
- Twisted pair cable has pairs of insulated copper wires twisted around each other to cancel interference. Unshielded twisted pair, or UTP, is the cheap and flexible form used in most local area networks; shielded twisted pair, or STP, adds a metal foil or braid and therefore resists electromagnetic interference better, at a higher cost. The grades are known as categories: Cat 5e, Cat 6 and Cat 6a, each carrying more bandwidth than the last, and an Ethernet segment on twisted pair is limited to about a hundred metres.
- Coaxial cable has a central copper conductor, an insulating layer, a braided metal shield and an outer jacket. It resists interference better than unshielded twisted pair and was once used for networks and still for television; its usual connector is the BNC.
- Optical fibre carries data as pulses of light through a glass or plastic core by total internal reflection. It offers the highest bandwidth and the longest distance, and because it carries light and not electricity it is completely immune to electromagnetic interference and very hard to tap. Single-mode fibre has a narrow core and goes further; multi-mode fibre has a wider core and is used over shorter distances. The common connectors are SC, ST and LC.
Internal and storage interfaces
Inside the cabinet, the hard disk and the optical drive are connected by their own interfaces. The older IDE or PATA interface used a wide forty-pin ribbon cable. SATA, which replaced it, uses a thin seven-pin data cable and a separate fifteen-pin power connector, and its external version is called eSATA. FireWire, formally IEEE 1394, was a fast port used for digital video cameras. It is worth remembering the difference between a port and a slot: a port is on the outside of the cabinet for a peripheral, while a slot such as PCI Express is on the motherboard inside and takes an expansion card.
Exam Point of View
The questions are short and factual. Expect the number of pins or contacts, where RJ-45 with eight and VGA with fifteen are the favourites. Expect full forms: USB, HDMI, VGA, UTP, STP and BNC. Expect a comparison, most often UTP against STP for interference, or optical fibre against copper for bandwidth and immunity. Expect the colour codes of the PS/2 ports and of the audio jacks. Expect a which-replaced-which question, such as SATA for IDE or USB for the serial and PS/2 ports. The standing traps are to swap RJ-45 with RJ-11, to say that VGA carries audio, and to call a PCI Express slot a port.
Important Facts
| USB full form | Universal Serial Bus; standard first released in 1996 |
|---|---|
| Devices on one USB host controller | Up to 127, using hubs |
| USB 2.0 speed | 480 megabits per second |
| USB 3.0 speed | 5 gigabits per second; the connector is usually blue |
| RJ-45 | Eight contacts, used for Ethernet networking |
| RJ-11 | The smaller connector used for telephone and modem lines |
| VGA port | Fifteen pins; analogue video only |
| HDMI | High-Definition Multimedia Interface; digital video and audio in one cable |
| PS/2 port | Six-pin mini-DIN; purple for keyboard, green for mouse |
| Serial port | RS-232 standard, nine-pin DB-9 connector, called COM |
| Parallel port | Twenty-five-pin DB-25 connector, called LPT, used for printers |
| Connector for coaxial cable | BNC |
| Optical fibre connectors | SC, ST and LC |
| SATA data cable | Seven pins, with a separate fifteen-pin power connector; replaced the forty-pin IDE ribbon |
Practice MCQs on this topic
How many contacts does the RJ-45 connector used for Ethernet networking have?
- A.4
- B.6
- C.8
- D.15
Show answer
The RJ-45 connector is properly called 8P8C, meaning eight positions and eight contacts, and it is crimped on to the four twisted pairs of a network cable, one contact for each of the eight wires.
Read the full explanation →What is the full form of USB?
- A.Universal Serial Bus
- B.Universal System Bus
- C.Unified Serial Bus
- D.Universal Storage Bus
Show answer
The standard first appeared in 1996 and was meant to replace the many different ports of an older computer with one socket for every kind of peripheral.
Read the full explanation →How many pins does a standard VGA connector have?
- A.9
- B.15
- C.19
- D.25
Show answer
The Video Graphics Array connector is a D-shaped plug with fifteen pins in three rows of five, usually coloured blue, and it carries an analogue video signal only, so a separate cable is needed for sound.
Read the full explanation →Which of the following ports carries digital video and audio together in a single cable?
- A.VGA
- B.PS/2
- C.HDMI
- D.Serial port
Show answer
The High-Definition Multimedia Interface carries high-definition digital video and multi-channel digital audio in the same cable, which is why one HDMI lead is enough to join a computer to a television or a projector.
Read the full explanation →Which of the following is NOT true about Unshielded Twisted Pair (UTP) cables?
- A.They have a higher resistance to EMI than STP cables.
- B.They are commonly used in local area networks (LANs).
- C.They are lighter and more flexible than STP cables.
- D.They are cost-effective for short-distance communication.
Show answer
Unshielded twisted pair cable has no metal foil or braid around its pairs, so it resists electromagnetic interference less well than shielded twisted pair, not better; the only protection it has is the twisting of each pair, which cancels much of the noise picked up by the two wires.
Read the full explanation →In the colour code of PS/2 ports, the purple socket is meant for which device?
- A.Mouse
- B.Keyboard
- C.Printer
- D.Microphone
Show answer
A computer with PS/2 ports has two six-pin mini-DIN sockets that are identical in shape, so they are distinguished by colour: purple for the keyboard and green for the mouse.
Read the full explanation →The parallel port of a personal computer, used mainly for printers, is also known as the
- A.COM port
- B.LPT port
- C.PS/2 port
- D.AGP port
Show answer
LPT stands for line print terminal, the name by which the operating system knew the parallel port, which used a twenty-five-pin DB-25 connector on the computer and a thirty-six-pin Centronics connector at the printer end.
Read the full explanation →What is the maximum data transfer speed of USB 2.0?
- A.12 megabits per second
- B.480 megabits per second
- C.5 gigabits per second
- D.10 gigabits per second
Show answer
The correct answer is B, 480 megabits per second, the speed known as high speed in the USB 2.0 specification.
Read the full explanation →Which transmission medium is completely immune to electromagnetic interference?
- A.Unshielded twisted pair
- B.Shielded twisted pair
- C.Coaxial cable
- D.Optical fibre cable
Show answer
Fibre carries data as pulses of light travelling through a glass or plastic core by total internal reflection, and since no electric current flows in it, an external electromagnetic field cannot induce noise in the signal.
Read the full explanation →The RJ-11 connector is normally used for which purpose?
- A.Connecting a computer to an Ethernet network
- B.Connecting a telephone or a dial-up modem line
- C.Connecting a monitor to the computer
- D.Connecting a hard disk inside the cabinet
Show answer
The RJ-11 is the small modular connector at the end of a telephone cord, with four or six positions and usually two or four contacts, and it was also used to join a dial-up or ADSL modem to the telephone line.
Read the full explanation →The BNC connector is used with which type of cable?
- A.Twisted pair cable
- B.Coaxial cable
- C.Optical fibre cable
- D.SATA data cable
Show answer
The BNC connector is the bayonet-fitting plug that is pushed on and given a quarter turn to lock, and it terminates a coaxial cable, the cable with a central copper conductor, an insulating layer, a braided metal shield and an outer jacket.
Read the full explanation →Frequently Asked Questions
What is the difference between a port and a connector?
A port is the socket built into the computer, such as the USB or HDMI socket on its side or back. A connector is the plug at the end of a cable that fits into that port, such as a Type-A USB plug or an RJ-45 plug. The cable in between is the medium that carries the signal.
What is the difference between UTP and STP cable?
Both are twisted pair cables of copper wire. Unshielded twisted pair has no metal shield, so it is cheaper, lighter and more flexible, and is used in most local area networks. Shielded twisted pair adds a foil or braided shield around the pairs, which gives better protection against electromagnetic interference but makes the cable costlier and stiffer.
Which cable is immune to electromagnetic interference?
Optical fibre, because it carries data as pulses of light through a glass or plastic core instead of electric current through copper. Having no electrical signal, it is unaffected by electromagnetic interference, suffers less signal loss over distance and is very difficult to tap, which is why it is used for long-distance and backbone links.
How many devices can be connected to a single USB host controller?
Up to 127 devices, using hubs to branch out from the port. USB is also hot-swappable, which means a device can be plugged in or removed while the computer is running, and plug and play, which means the operating system recognises and configures the device without the user installing drivers by hand in most cases.
Which port carries both video and audio in one cable?
HDMI, the High-Definition Multimedia Interface, carries digital video and digital audio together in a single cable, which is why it is used for televisions, monitors and projectors. DisplayPort does the same on computer monitors. A VGA port carries analogue video only, so a separate audio cable is needed with it.
Sources
- Computer Science (Class XI), chapter on computer systems and organisation — NCERT
- Course on Computer Concepts course material — National Institute of Electronics and Information Technology
- USB specifications and connector types — USB Implementers Forum





