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) 52 128 51 14 Answer: C) 51
Explanation: 2^7 = 128; 128 mod 77 = 51. Lesson 10.2 · Cyber Security
Discuss this question
127. An HMAC provides: Integrity and authenticity using a shared key Key exchange Only confidentiality 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: A longer password policy Parameterised queries (prepared statements) Using HTTPS 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: Securely agreeing a shared key over an insecure channel Hashing passwords Compressing files 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: Make a bit-for-bit image and verify it with a hash Defragment the disk Delete temporary files 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: Incident ticket only Encryption log Chain of custody 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? 21 12 22 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) 10 11 32 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: Proxy Load balancer Honeypot 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: Containment Preparation Recovery only 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)? 256 64 512 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))? 6 8 5 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: Certificate Authority (CA) Router DNS server 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? 62 bits 48 bits 8 bits 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: Antivirus protection An encrypted tunnel over an untrusted network Faster internet speed always 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: The number of firewalls The likelihood of a threat exploiting a vulnerability multiplied by its impact The cost of antivirus 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? 6 bits 36 bits 62 bits 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? CVVCEM BUUBDL KCATTA 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: Reversible with a key Used only for compression The same as encryption 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: Race condition only CSRF SQL injection 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: SQL injection Theft of the cookie by JavaScript (e.g. via XSS) DDoS 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))? 8 13 3 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: Availability Confidentiality Integrity 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: DDoS attack Code review only Penetration test 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