Bahria University Entry Test computer science Network Security — Set 2

Network Security MCQs set 2 for Bahria University Entry Test computer science — 20 solved questions.

Bahria University Entry Test computer science Network Security — Set 2

  1. Question 1

    Q1. Which protocol is used for secure web browsing?

    • A) HTTP
    • B) HTTPS
    • C) FTP
    • D) SSH

    Answer: HTTPS

    Explanation: HTTPS (Hypertext Transfer Protocol Secure) is used for secure web browsing as it encrypts data in transit.

  2. Question 2

    Q2. What type of attack involves guessing a password?

    • A) Brute Force Attack
    • B) Phishing Attack
    • C) SQL Injection
    • D) Cross-Site Scripting

    Answer: Brute Force Attack

    Explanation: A brute force attack involves trying all possible combinations of a password to guess it.

  3. Question 3

    Q3. Which of the following is a type of malware that demands payment?

    • A) Virus
    • B) Worm
    • C) Ransomware
    • D) Trojan

    Answer: Ransomware

    Explanation: Ransomware is malware that encrypts a victim's files and demands a ransom in exchange for the decryption key.

  4. Question 4

    Q4. What is the primary function of a digital signature?

    • A) To encrypt data
    • B) To authenticate the sender
    • C) To ensure data integrity
    • D) Both B and C

    Answer: Both B and C

    Explanation: A digital signature authenticates the sender and ensures that the message has not been tampered with, thus ensuring data integrity.

  5. Question 5

    Q5. Which protocol is used for secure remote access?

    • A) Telnet
    • B) SSH
    • C) FTP
    • D) HTTP

    Answer: SSH

    Explanation: SSH (Secure Shell) is used for secure remote access as it encrypts data in transit, unlike Telnet which sends data in plain text.

  6. Question 6

    Q6. What is a common method used to protect against SQL injection attacks?

    • A) Input Validation
    • B) Using a Firewall
    • C) Encrypting Data
    • D) Using a VPN

    Answer: Input Validation

    Explanation: Input validation involves checking user input to prevent malicious SQL code from being injected into a database.

  7. Question 7

    Q7. What type of attack involves overwhelming a system with traffic?

    • A) Denial of Service (DoS)
    • B) Man-in-the-Middle (MitM)
    • C) Phishing
    • D) SQL Injection

    Answer: Denial of Service (DoS)

    Explanation: A DoS attack involves flooding a system with traffic to make it unavailable to users.

  8. Question 8

    Q8. Which of the following is NOT a common type of malware?

    • A) Virus
    • B) Worm
    • C) Firewall
    • D) Trojan

    Answer: Firewall

    Explanation: A firewall is a security system that controls incoming and outgoing network traffic, it is not a type of malware.

  9. Question 9

    Q9. What is the purpose of a honeypot in network security?

    • A) To detect and divert attacks
    • B) To encrypt sensitive data
    • C) To authenticate users
    • D) To filter incoming traffic

    Answer: To detect and divert attacks

    Explanation: A honeypot is a decoy system that attracts attackers, allowing security teams to detect and analyze attack patterns.

  10. Question 10

    Q10. Which encryption algorithm is commonly used for secure data transmission?

    • A) AES
    • B) RSA
    • C) MD5
    • D) SHA-1

    Answer: AES

    Explanation: AES (Advanced Encryption Standard) is a symmetric encryption algorithm widely used for secure data transmission.

  11. Question 11

    Q11. What is a key characteristic of a symmetric encryption algorithm?

    • A) It uses a pair of keys
    • B) It uses the same key for encryption and decryption
    • C) It is slower than asymmetric encryption
    • D) It is less secure than asymmetric encryption

    Answer: It uses the same key for encryption and decryption

    Explanation: Symmetric encryption uses the same key for both encryption and decryption, making it faster but requiring secure key exchange.

  12. Question 12

    Q12. What is the primary benefit of using a Virtual Private Network (VPN)?

    • A) Improved network performance
    • B) Enhanced security for remote access
    • C) Increased storage capacity
    • D) Better network management

    Answer: Enhanced security for remote access

    Explanation: A VPN provides a secure and encrypted connection for remote access, protecting data from interception.

  13. Question 13

    Q13. Which of the following is a security benefit of using a public key infrastructure (PKI)?

    • A) It simplifies password management
    • B) It enables secure communication over an insecure channel
    • C) It improves network performance
    • D) It reduces the need for firewalls

    Answer: It enables secure communication over an insecure channel

    Explanation: PKI enables secure communication by using public and private key pairs to authenticate and encrypt data.

  14. Question 14

    Q14. What is a common vulnerability in web applications?

    • A) SQL Injection
    • B) Cross-Site Scripting (XSS)
    • C) Buffer Overflow
    • D) All of the above

    Answer: All of the above

    Explanation: All the mentioned vulnerabilities (SQL Injection, XSS, Buffer Overflow) are common security risks in web applications.

  15. Question 15

    Q15. What is the purpose of a security patch?

    • A) To add new features
    • B) To fix vulnerabilities
    • C) To improve performance
    • D) To change configuration settings

    Answer: To fix vulnerabilities

    Explanation: A security patch is used to fix known vulnerabilities in software, thereby preventing exploitation by attackers.

  16. Question 16

    Q16. Which security measure involves monitoring network traffic for signs of unauthorized access?

    • A) Intrusion Detection System (IDS)
    • B) Firewall
    • C) VPN
    • D) Encryption

    Answer: Intrusion Detection System (IDS)

    Explanation: An IDS monitors network traffic to identify potential security threats and alert administrators.

  17. Question 17

    Q17. Which of the following is a type of malware?

    • A) Virus
    • B) Firewall
    • C) Router
    • D) Switch

    Answer: Virus

    Explanation: A virus is a type of malware that replicates itself by attaching to other programs or files on a computer.

  18. Question 18

    Q18. What is the purpose of encryption in network security?

    • A) To compress data
    • B) To improve network speed
    • C) To protect data from unauthorized access
    • D) To detect intrusions

    Answer: To protect data from unauthorized access

    Explanation: Encryption protects data by converting it into an unreadable format, making it inaccessible to unauthorized parties.

  19. Question 19

    Q19. Which network security measure involves verifying the identity of users?

    • A) Authentication
    • B) Authorization
    • C) Encryption
    • D) Firewall configuration

    Answer: Authentication

    Explanation: Authentication is the process of verifying the identity of users, ensuring that only legitimate users access the network.

  20. Question 20

    Q20. Which security protocol is used for secure email communication?

    • A) PGP
    • B) SSL/TLS
    • C) IPSec
    • D) HTTP

    Answer: PGP

    Explanation: PGP (Pretty Good Privacy) is used for secure email communication by encrypting and signing emails.