MCQs / Computer Science / NSCT: Cyber Security

NSCT: Cyber Security MCQs — Computer Science (page 3)

149 multiple-choice questions on NSCT: Cyber Security from Computer Science, each with the correct answer and, where available, a teacher's explanation. Read through them to revise the chapter, then practise the same questions one by one to test yourself.

51. The 3-2-1 backup rule means:

  1. 3 copies, on 2 different media, with 1 off-site
  2. 3 passwords, 2 factors, 1 token
  3. 3 servers, 2 firewalls, 1 router
  4. 3 backups a day for 2 weeks for 1 user

Answer: A) 3 copies, on 2 different media, with 1 off-site

Explanation: An off-site/offline copy survives ransomware. Lesson 10.4 · Cyber Security

Discuss this question

52. A password is 6 characters long and uses lowercase letters and digits (36 possible characters). How many possible passwords are there?

  1. 6^36
  2. 36^6
  3. 36^5
  4. 36 × 6

Answer: B) 36^6

Explanation: Each of the 6 positions has 36 choices: 36^6 = 2,176,782,336. Lesson 10.2 · Cyber Security

Discuss this question

53. Using a Caesar cipher with a shift of 2, what is the ciphertext of "ZEBRA"?

  1. BGDTC
  2. CHEUD
  3. AFCSB
  4. XCZPY

Answer: A) BGDTC

Explanation: Shift each letter forward by 2: ZEBRA → BGDTC. Lesson 10.2 · Cyber Security

Discuss this question

54. In RSA with n = 55 and e = 3, what is the ciphertext of the message m = 2? (c = m^e mod n)

  1. 8
  2. 47
  3. 9
  4. 6

Answer: A) 8

Explanation: 2^3 = 8; 8 mod 55 = 8. Lesson 10.2 · Cyber Security

Discuss this question

55. Encrypting a file so that only authorised users can read it protects:

  1. Non-repudiation only
  2. Integrity only
  3. Confidentiality
  4. Availability

Answer: C) Confidentiality

Explanation: Unauthorised users cannot read it. Lesson 10.1 · Cyber Security

Discuss this question

56. Giving users only the access they need to do their job is the principle of:

  1. Defence in depth
  2. Least privilege
  3. Open design
  4. Security through obscurity

Answer: B) Least privilege

Explanation: It limits damage if an account is compromised. Lesson 10.1 · Cyber Security

Discuss this question

57. X.509 is the standard format for:

  1. Digital certificates
  2. Email headers
  3. Wi-Fi passwords
  4. Firewall rules

Answer: A) Digital certificates

Explanation: Certificates bind a public key to an identity. Lesson 10.2 · Cyber Security

Discuss this question

58. Sending fake ARP replies to redirect LAN traffic through the attacker is:

  1. Port scanning
  2. ARP spoofing (poisoning)
  3. DNS tunnelling
  4. SQL injection

Answer: B) ARP spoofing (poisoning)

Explanation: Enables MITM on a local network. Lesson 10.3 · Cyber Security

Discuss this question

59. A password is 10 characters long and uses all printable keyboard characters (94 possible characters). How many possible passwords are there?

  1. 10^94
  2. 94 × 10
  3. 94^10
  4. 94^9

Answer: C) 94^10

Explanation: Each of the 10 positions has 94 choices: 94^10 = 53,861,511,409,489,970,176. Lesson 10.2 · Cyber Security

Discuss this question

60. In RSA with p = 11, q = 13 and public exponent e = 7, what is the private exponent d (where e × d ≡ 1 mod φ(n))?

  1. 7
  2. 103
  3. 104
  4. 17

Answer: B) 103

Explanation: φ = 120; 7 × 103 = 721 = 6 × 120 + 1, so d = 103. Lesson 10.2 · Cyber Security

Discuss this question

61. A password is 4 characters long and uses digits only (10 possible characters). How many possible passwords are there?

  1. 10 × 4
  2. 4^10
  3. 10^4
  4. 10^3

Answer: C) 10^4

Explanation: Each of the 4 positions has 10 choices: 10^4 = 10,000. Lesson 10.2 · Cyber Security

Discuss this question

62. Malware that records every key pressed to steal passwords is a:

  1. Logic bomb
  2. Worm
  3. Botnet
  4. Keylogger

Answer: D) Keylogger

Explanation: A type of spyware. Lesson 10.1 · Cyber Security

Discuss this question

63. An attacker can try 100 guesses per second. What is the worst-case time to brute-force a 4-character password from 10 possible characters?

  1. 200 seconds
  2. 10 seconds
  3. 6000 seconds
  4. 100 seconds

Answer: D) 100 seconds

Explanation: 10^4 = 10,000 keys ÷ 100 per second = 100 s. Lesson 10.2 · Cyber Security

Discuss this question

64. To create a digital signature, the sender encrypts the message hash with:

  1. The receiver's public key
  2. Their own private key
  3. A shared AES key only
  4. The receiver's private key

Answer: B) Their own private key

Explanation: Anyone verifies with the sender's public key. Lesson 10.2 · Cyber Security

Discuss this question

65. A vulnerability that is unknown to the vendor and has no patch yet is a:

  1. Known CVE with a patch
  2. Legacy bug
  3. Honeypot
  4. Zero-day vulnerability

Answer: D) Zero-day vulnerability

Explanation: Attackers exploit it before a fix exists. Lesson 10.1 · Cyber Security

Discuss this question

66. The first phase of the NIST incident response life cycle is:

  1. Preparation
  2. Containment
  3. Eradication
  4. Lessons learned

Answer: A) Preparation

Explanation: Plans, tools and training come first. Lesson 10.4 · Cyber Security

Discuss this question

67. Nmap is mainly used for:

  1. Network and port scanning
  2. Writing web pages
  3. Database backups
  4. Password hashing

Answer: A) Network and port scanning

Explanation: It finds open ports and services. Lesson 10.3 · Cyber Security

Discuss this question

68. Using a Caesar cipher with a shift of 13, what is the ciphertext of "DATA"?

  1. ROHO
  2. QNGN
  3. NGNQ
  4. PMFM

Answer: B) QNGN

Explanation: Shift each letter forward by 13: DATA → QNGN. Lesson 10.2 · Cyber Security

Discuss this question

69. An attacker can try 1,000 guesses per second. What is the worst-case time to brute-force a 6-character password from 10 possible characters?

  1. 2000 seconds
  2. 60000 seconds
  3. 100 seconds
  4. 1000 seconds

Answer: D) 1000 seconds

Explanation: 10^6 = 1,000,000 keys ÷ 1,000 per second = 1000 s. Lesson 10.2 · Cyber Security

Discuss this question

70. In RSA with p = 5 and q = 11, what is φ(n)?

  1. 55
  2. 40
  3. 72
  4. 54

Answer: B) 40

Explanation: φ(n) = (p − 1)(q − 1) = 40. Lesson 10.2 · Cyber Security

Discuss this question

71. Trying leaked username–password pairs from one site on another site is:

  1. Spear phishing
  2. Salting
  3. Sniffing
  4. Credential stuffing

Answer: D) Credential stuffing

Explanation: It works because people reuse passwords. Lesson 10.3 · Cyber Security

Discuss this question

72. In RSA with n = 65 and e = 5, what is the ciphertext of the message m = 2? (c = m^e mod n)

  1. 31
  2. 33
  3. 10
  4. 32

Answer: D) 32

Explanation: 2^5 = 32; 32 mod 65 = 32. Lesson 10.2 · Cyber Security

Discuss this question

73. The main cyber crime law of Pakistan is:

  1. HIPAA
  2. The Copyright Ordinance 1962
  3. PECA 2016
  4. GDPR

Answer: C) PECA 2016

Explanation: Prevention of Electronic Crimes Act, 2016. Lesson 10.4 · Cyber Security

Discuss this question

74. How many hexadecimal characters are in a SHA-256 hash (256 bits)?

  1. 32
  2. 256
  3. 128
  4. 64

Answer: D) 64

Explanation: Each hex character is 4 bits: 256 ÷ 4 = 64. Lesson 10.2 · Cyber Security

Discuss this question

75. A system that collects and correlates logs from many sources to detect attacks is a:

  1. DMZ
  2. SIEM
  3. VPN
  4. CA

Answer: B) SIEM

Explanation: Security Information and Event Management. Lesson 10.4 · Cyber Security

Discuss this question

Previous Page 3 of 6 Next

Practise NSCT: Cyber Security MCQs

More Computer Science chapters