MCQs / Computer Science / NSCT: Cyber Security

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

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.

126. In RSA with n = 77 and e = 7, what is the ciphertext of the message m = 2? (c = m^e mod n)

  1. 52
  2. 128
  3. 51
  4. 14

Answer: C) 51

Explanation: 2^7 = 128; 128 mod 77 = 51. Lesson 10.2 · Cyber Security

Discuss this question

127. An HMAC provides:

  1. Integrity and authenticity using a shared key
  2. Key exchange
  3. Only confidentiality
  4. Compression

Answer: A) Integrity and authenticity using a shared key

Explanation: Hash + secret key. Lesson 10.2 · Cyber Security

Discuss this question

128. The most effective defence against SQL injection is:

  1. A longer password policy
  2. Parameterised queries (prepared statements)
  3. Using HTTPS
  4. Hiding error messages only

Answer: B) Parameterised queries (prepared statements)

Explanation: User input is never treated as SQL code. Lesson 10.3 · Cyber Security

Discuss this question

129. Diffie–Hellman is mainly used for:

  1. Securely agreeing a shared key over an insecure channel
  2. Hashing passwords
  3. Compressing files
  4. Signing certificates only

Answer: A) Securely agreeing a shared key over an insecure channel

Explanation: Key exchange. Lesson 10.2 · Cyber Security

Discuss this question

130. Before analysing a seized disk, investigators first:

  1. Make a bit-for-bit image and verify it with a hash
  2. Defragment the disk
  3. Delete temporary files
  4. Install antivirus on it

Answer: A) Make a bit-for-bit image and verify it with a hash

Explanation: Work on the copy, never the original. Lesson 10.4 · Cyber Security

Discuss this question

131. In digital forensics, a documented record of who handled evidence and when is the:

  1. Incident ticket only
  2. Encryption log
  3. Chain of custody
  4. Audit trail of the website

Answer: C) Chain of custody

Explanation: It keeps evidence admissible in court. Lesson 10.4 · Cyber Security

Discuss this question

132. In RSA, the primes are p = 3 and q = 7. What is n?

  1. 21
  2. 12
  3. 22
  4. 10

Answer: A) 21

Explanation: n = p × q = 21. Lesson 10.2 · Cyber Security

Discuss this question

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

  1. 10
  2. 11
  3. 32
  4. 12

Answer: B) 11

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

Discuss this question

134. A decoy system set up to attract and study attackers is a:

  1. Proxy
  2. Load balancer
  3. Honeypot
  4. Firewall

Answer: C) Honeypot

Explanation: It wastes attackers' time and gathers intelligence. Lesson 10.4 · Cyber Security

Discuss this question

135. Disconnecting an infected laptop from the network during an incident is part of:

  1. Containment
  2. Preparation
  3. Recovery only
  4. Post-incident review

Answer: A) Containment

Explanation: Stop the spread first. Lesson 10.4 · Cyber Security

Discuss this question

136. How many hexadecimal characters are in a SHA-512 hash (512 bits)?

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

Answer: D) 128

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

Discuss this question

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

  1. 6
  2. 8
  3. 5
  4. 7

Answer: C) 5

Explanation: φ = 12; 5 × 5 = 25 = 2 × 12 + 1, so d = 5. Lesson 10.2 · Cyber Security

Discuss this question

138. A trusted organisation that issues and signs digital certificates is a:

  1. Certificate Authority (CA)
  2. Router
  3. DNS server
  4. Firewall

Answer: A) Certificate Authority (CA)

Explanation: Browsers trust root CAs. Lesson 10.2 · Cyber Security

Discuss this question

139. Approximately how many bits of entropy does a random 8-character password from 62 possible characters have?

  1. 62 bits
  2. 48 bits
  3. 8 bits
  4. 95 bits

Answer: B) 48 bits

Explanation: Entropy = L × log2(N) = 8 × 5.95 ≈ 48 bits. Lesson 10.2 · Cyber Security

Discuss this question

140. A VPN provides:

  1. Antivirus protection
  2. An encrypted tunnel over an untrusted network
  3. Faster internet speed always
  4. Free bandwidth

Answer: B) An encrypted tunnel over an untrusted network

Explanation: Remote workers use it to reach office systems securely. Lesson 10.3 · Cyber Security

Discuss this question

141. Risk is best described as:

  1. The number of firewalls
  2. The likelihood of a threat exploiting a vulnerability multiplied by its impact
  3. The cost of antivirus
  4. The same as a vulnerability

Answer: B) The likelihood of a threat exploiting a vulnerability multiplied by its impact

Explanation: Risk = likelihood × impact. Lesson 10.1 · Cyber Security

Discuss this question

142. Approximately how many bits of entropy does a random 6-character password from 36 possible characters have?

  1. 6 bits
  2. 36 bits
  3. 62 bits
  4. 31 bits

Answer: D) 31 bits

Explanation: Entropy = L × log2(N) = 6 × 5.17 ≈ 31 bits. Lesson 10.2 · Cyber Security

Discuss this question

143. The ciphertext "BUUBDL" was made with a Caesar shift of 1. What is the plaintext?

  1. CVVCEM
  2. BUUBDL
  3. KCATTA
  4. ATTACK

Answer: D) ATTACK

Explanation: Shift each letter back by 1: BUUBDL → ATTACK. Lesson 10.2 · Cyber Security

Discuss this question

144. A hash function is:

  1. Reversible with a key
  2. Used only for compression
  3. The same as encryption
  4. One-way and gives a fixed-size output

Answer: D) One-way and gives a fixed-size output

Explanation: You cannot recover the input from the hash. Lesson 10.2 · Cyber Security

Discuss this question

145. Writing more data into a buffer than it can hold, overwriting nearby memory, is a:

  1. Race condition only
  2. CSRF
  3. SQL injection
  4. Buffer overflow

Answer: D) Buffer overflow

Explanation: Common in unchecked C code. Lesson 10.3 · Cyber Security

Discuss this question

146. Setting the HttpOnly flag on a session cookie helps prevent:

  1. SQL injection
  2. Theft of the cookie by JavaScript (e.g. via XSS)
  3. DDoS
  4. Brute force

Answer: B) Theft of the cookie by JavaScript (e.g. via XSS)

Explanation: Scripts cannot read HttpOnly cookies. Lesson 10.3 · Cyber Security

Discuss this question

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

  1. 8
  2. 13
  3. 3
  4. 7

Answer: D) 7

Explanation: φ = 20; 3 × 7 = 21 = 1 × 20 + 1, so d = 7. Lesson 10.2 · Cyber Security

Discuss this question

148. A DDoS attack mainly targets:

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

Answer: A) Availability

Explanation: It makes a service unreachable. Lesson 10.1 · Cyber Security

Discuss this question

149. An authorised simulated attack to find exploitable weaknesses is a:

  1. DDoS attack
  2. Code review only
  3. Penetration test
  4. Phishing campaign by criminals

Answer: C) Penetration test

Explanation: Requires written permission and scope. Lesson 10.4 · Cyber Security

Discuss this question

Previous Page 6 of 6

Practise NSCT: Cyber Security MCQs

More Computer Science chapters