Engineering, Management, Agriculture and Veterinary MCQs are now live. FPSC, PPSC, EPE, IELTS & GRE coming soon.

Computer Networks: Network Security and Wireless

Electrical Engineering · Computer Networks

26 questions, each with the answer and a worked solution.

Practice interactively and track your score →
Question 1

What is a VPN?

  1. A public Wi-Fi hotspot
  2. A type of cable
  3. A router port
  4. A virtual private network that creates an encrypted tunnel over a public network
Show answer & solution

Answer: (D) A virtual private network that creates an encrypted tunnel over a public network

VPNs protect data in transit.

Question 2

What is symmetric encryption?

  1. Encryption using public and private keys
  2. Encryption using the same secret key for encryption and decryption
  3. Hashing only
  4. No encryption
Show answer & solution

Answer: (B) Encryption using the same secret key for encryption and decryption

AES is a symmetric algorithm.

Question 3

What is asymmetric (public-key) encryption?

  1. Encryption using a public key to encrypt and a private key to decrypt
  2. Compression
  3. Hashing only
  4. Encryption with one shared key
Show answer & solution

Answer: (A) Encryption using a public key to encrypt and a private key to decrypt

RSA is an asymmetric algorithm.

Question 4

What is a hash function used for in security?

  1. Routing packets
  2. Encrypting with a key
  3. Assigning IP addresses
  4. Producing a fixed-length digest to check data integrity
Show answer & solution

Answer: (D) Producing a fixed-length digest to check data integrity

SHA-256 is a common hash function.

Question 5

What is a computer worm?

  1. A firewall
  2. A harmless program
  3. Malware that replicates itself across networks without user action
  4. An antivirus
Show answer & solution

Answer: (C) Malware that replicates itself across networks without user action

Viruses need a host file or user action.

Question 6

What is a trojan horse?

  1. A firewall
  2. Malware disguised as legitimate software
  3. A network cable
  4. A routing protocol
Show answer & solution

Answer: (B) Malware disguised as legitimate software

Trojans often open backdoors.

Question 7

What is ransomware?

  1. An antivirus
  2. A backup tool
  3. A firewall
  4. Malware that encrypts victims' files and demands payment
Show answer & solution

Answer: (D) Malware that encrypts victims' files and demands payment

Regular offline backups protect against it.

Question 8

What is phishing?

  1. Tricking users into revealing passwords or personal data through fake messages or websites
  2. A routing protocol
  3. A network topology
  4. A type of cable
Show answer & solution

Answer: (A) Tricking users into revealing passwords or personal data through fake messages or websites

Users should verify links and senders.

Question 9

What is a denial-of-service (DoS) attack?

  1. Installing updates
  2. Stealing passwords only
  3. An attack that floods a system with traffic to make it unavailable
  4. Encrypting data
Show answer & solution

Answer: (C) An attack that floods a system with traffic to make it unavailable

Distributed (DDoS) attacks use many compromised devices.

Question 10

What is two-factor authentication?

  1. Logging in twice
  2. Using two different types of evidence, such as a password and a code, to verify identity
  3. Using two passwords
  4. Using no password
Show answer & solution

Answer: (B) Using two different types of evidence, such as a password and a code, to verify identity

It greatly reduces account compromise.

Question 11

Which Wi-Fi security protocol is the most secure among these?

  1. Open network
  2. WEP
  3. WPA3
  4. WPA
Show answer & solution

Answer: (C) WPA3

WEP is obsolete and easily broken.

Question 12

What do SSL/TLS certificates provide for websites?

  1. Authentication of the server and encrypted communication
  2. IP address assignment
  3. Faster downloads only
  4. Free Internet
Show answer & solution

Answer: (A) Authentication of the server and encrypted communication

Browsers show a padlock for valid HTTPS connections.

Question 13

Which law in Pakistan deals with electronic crimes such as unauthorised access and cyber fraud?

  1. Explosives Act, 1884
  2. Factories Act, 1934
  3. Mines Act, 1923
  4. Prevention of Electronic Crimes Act (PECA), 2016
Show answer & solution

Answer: (D) Prevention of Electronic Crimes Act (PECA), 2016

The FIA's cybercrime wing investigates such cases.

Question 14

What is the range of Bluetooth classic devices typically?

  1. About 1 cm
  2. About 10 km
  3. About 10 m
  4. About 1,000 km
Show answer & solution

Answer: (C) About 10 m

Bluetooth operates in the 2.4 GHz band.

Question 15

In which frequency bands does Wi-Fi commonly operate?

  1. 1 THz
  2. 2.4 GHz and 5 GHz (and 6 GHz for Wi-Fi 6E)
  3. 50 Hz and 60 Hz
  4. 100 MHz only
Show answer & solution

Answer: (B) 2.4 GHz and 5 GHz (and 6 GHz for Wi-Fi 6E)

The 5 GHz band offers more channels and less interference.

Question 16

What is the Internet of Things (IoT)?

  1. Network-connected devices such as sensors and appliances that exchange data
  2. A single router
  3. A power cable
  4. Only personal computers
Show answer & solution

Answer: (A) Network-connected devices such as sensors and appliances that exchange data

Smart meters and home sensors are IoT devices.

Question 17

What is cloud computing?

  1. A type of weather study
  2. A network cable
  3. Using only local hard disks
  4. Delivering computing services such as storage and processing over the Internet
Show answer & solution

Answer: (D) Delivering computing services such as storage and processing over the Internet

Users pay for resources as needed.

Question 18

Why is cybersecurity important for power system SCADA networks?

  1. It is not important
  2. Attacks could disrupt grid operation and cause blackouts
  3. SCADA has no networks
  4. It only affects billing
Show answer & solution

Answer: (B) Attacks could disrupt grid operation and cause blackouts

Industrial networks need segmentation, firewalls and monitoring.

Question 19

What is the purpose of antivirus software?

  1. To increase network speed
  2. To assign IP addresses
  3. To manage routers
  4. To detect and remove malicious software
Show answer & solution

Answer: (D) To detect and remove malicious software

Signatures must be updated regularly.

Question 20

What is a demilitarised zone (DMZ) in network security?

  1. A separate network segment for public-facing servers between internal and external firewalls
  2. A wireless network only
  3. A backup tape
  4. A home network
Show answer & solution

Answer: (A) A separate network segment for public-facing servers between internal and external firewalls

It limits exposure of the internal network.

Question 21

What is the main purpose of network segmentation?

  1. To increase broadcast traffic
  2. To limit the spread of attacks and control traffic between parts of a network
  3. To slow the network
  4. To remove firewalls
Show answer & solution

Answer: (B) To limit the spread of attacks and control traffic between parts of a network

VLANs and firewalls are used for segmentation.

Question 22

What is social engineering in cybersecurity?

  1. Designing networks
  2. Installing cables
  3. Manipulating people into revealing information or performing unsafe actions
  4. Writing software
Show answer & solution

Answer: (C) Manipulating people into revealing information or performing unsafe actions

Training users is the main defence.

Question 23

What is a strong password policy?

  1. Using long passwords with a mix of character types, changed when compromised and not reused
  2. Sharing passwords
  3. Using the same password everywhere
  4. Using "123456"
Show answer & solution

Answer: (A) Using long passwords with a mix of character types, changed when compromised and not reused

Password managers help users follow good practice.

Question 24

What is a brute-force attack?

  1. A physical attack on cables
  2. A firewall rule
  3. Trying many possible passwords or keys until the correct one is found
  4. A type of malware only
Show answer & solution

Answer: (C) Trying many possible passwords or keys until the correct one is found

Account lockouts and long passwords defend against it.

Question 25

What is the purpose of software updates and patches in network security?

  1. To change IP addresses
  2. To fix vulnerabilities that attackers could exploit
  3. To remove firewalls
  4. To slow down systems
Show answer & solution

Answer: (B) To fix vulnerabilities that attackers could exploit

Unpatched systems are common attack targets.

Question 26

What is an intrusion detection system (IDS)?

  1. A switch
  2. A cable tester
  3. A router
  4. A system that monitors network traffic for suspicious activity and raises alerts
Show answer & solution

Answer: (D) A system that monitors network traffic for suspicious activity and raises alerts

An intrusion prevention system can also block attacks.

Practice these 26 questions interactively →