MCQs / Computer Science / NSCT: Cyber Security
NSCT: Cyber Security MCQs — Computer Science (page 2) 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.
26. A free "PDF converter" that secretly installs a backdoor is a: Rootkit only Worm Trojan Logic bomb Answer: C) Trojan
Explanation: It pretends to be useful software. Lesson 10.1 · Cyber Security
Discuss this question
27. A request for /files?name=../../etc/passwd is an attempt at: CSRF Phishing SQL injection Directory (path) traversal Answer: D) Directory (path) traversal
Explanation: It tries to read files outside the web folder. Lesson 10.3 · Cyber Security
Discuss this question
28. Approximately how many bits of entropy does a random 6-character password from 10 possible characters have? 40 bits 10 bits 6 bits 20 bits Answer: D) 20 bits
Explanation: Entropy = L × log2(N) = 6 × 3.32 ≈ 20 bits. Lesson 10.2 · Cyber Security
Discuss this question
29. In RSA with p = 5, q = 13 and public exponent e = 5, what is the private exponent d (where e × d ≡ 1 mod φ(n))? 29 30 5 19 Answer: A) 29
Explanation: φ = 48; 5 × 29 = 145 = 3 × 48 + 1, so d = 29. Lesson 10.2 · Cyber Security
Discuss this question
30. Why is AES-256 considered resistant to brute force? It is a hash function Its key space of 2^256 keys is far too large to search Its algorithm is secret It uses public keys Answer: B) Its key space of 2^256 keys is far too large to search
Explanation: Security comes from the key, not a secret design. Lesson 10.2 · Cyber Security
Discuss this question
31. A hidden form on a malicious site makes the logged-in victim's browser transfer money on their bank's site. This is: XSS SQL injection Brute force CSRF Answer: D) CSRF
Explanation: Cross-site request forgery; fix with anti-CSRF tokens. Lesson 10.3 · Cyber Security
Discuss this question
32. In RSA with n = 33 and e = 3, what is the ciphertext of the message m = 2? (c = m^e mod n) 8 6 9 25 Answer: A) 8
Explanation: 2^3 = 8; 8 mod 33 = 8. Lesson 10.2 · Cyber Security
Discuss this question
33. Logging in with a password plus a code from a phone app is: Biometric only Multi-factor authentication Authorisation Single sign-on only Answer: B) Multi-factor authentication
Explanation: Something you know + something you have. Lesson 10.1 · Cyber Security
Discuss this question
34. An employee's laptop is found with ransomware. The best FIRST action is to: Restart it repeatedly Email all staff the infected file Pay the ransom immediately Isolate the laptop from the network Answer: D) Isolate the laptop from the network
Explanation: Containment stops the spread. Lesson 10.4 · Cyber Security
Discuss this question
35. A security researcher who finds a bug should report it privately to the vendor first. This is: Social engineering Full public dumping Credential stuffing Responsible disclosure Answer: D) Responsible disclosure
Explanation: Gives the vendor time to fix it. Lesson 10.4 · Cyber Security
Discuss this question
36. The Caesar cipher is an example of a: Stream cipher with a random key Hash function Substitution cipher Public-key cipher Answer: C) Substitution cipher
Explanation: Each letter is replaced by a shifted letter. Lesson 10.2 · Cyber Security
Discuss this question
37. Which hash algorithm is considered broken and should not be used for security? SHA-3 bcrypt SHA-256 MD5 Answer: D) MD5
Explanation: MD5 collisions are easy to create. Lesson 10.2 · Cyber Security
Discuss this question
38. Approximately how many bits of entropy does a random 8-character password from 26 possible characters have? 8 bits 26 bits 38 bits 75 bits Answer: C) 38 bits
Explanation: Entropy = L × log2(N) = 8 × 4.70 ≈ 38 bits. Lesson 10.2 · Cyber Security
Discuss this question
39. In RSA with p = 7 and q = 11, what is φ(n)? 96 60 76 77 Answer: B) 60
Explanation: φ(n) = (p − 1)(q − 1) = 60. Lesson 10.2 · Cyber Security
Discuss this question
40. A network of infected computers controlled by an attacker is a: VPN Honeypot Botnet Subnet Answer: C) Botnet
Explanation: Often used for DDoS and spam. Lesson 10.1 · Cyber Security
Discuss this question
41. How many hexadecimal characters are in a MD5 hash (128 bits)? 128 64 32 16 Answer: C) 32
Explanation: Each hex character is 4 bits: 128 ÷ 4 = 32. Lesson 10.2 · Cyber Security
Discuss this question
42. A penetration tester who is given no information about the target system performs a: White-box test Black-box test Grey-box test Unit test Answer: B) Black-box test
Explanation: White-box testers get full knowledge. Lesson 10.4 · Cyber Security
Discuss this question
43. The input ' OR '1'='1 typed into a login form is an attempt at: SQL injection CSRF XSS DDoS Answer: A) SQL injection
Explanation: It makes the WHERE clause always true. Lesson 10.3 · Cyber Security
Discuss this question
44. The ciphertext "WHRPZAHU" was made with a Caesar shift of 7. What is the plaintext? QBLJTUBO DOYWGHOB PAKISTAN NATSIKAP Answer: C) PAKISTAN
Explanation: Shift each letter back by 7: WHRPZAHU → PAKISTAN. Lesson 10.2 · Cyber Security
Discuss this question
45. In RSA with p = 3 and q = 7, what is φ(n)? 20 12 21 32 Answer: B) 12
Explanation: φ(n) = (p − 1)(q − 1) = 12. Lesson 10.2 · Cyber Security
Discuss this question
46. An attacker secretly relays and possibly alters communication between two parties. This is a: Brute-force attack DDoS attack Logic bomb Man-in-the-middle attack Answer: D) Man-in-the-middle attack
Explanation: TLS with certificate checks prevents it. Lesson 10.3 · Cyber Security
Discuss this question
47. Checking a file's SHA-256 hash after a download verifies its: Integrity Availability Authorisation Confidentiality Answer: A) Integrity
Explanation: A changed file gives a different hash. Lesson 10.1 · Cyber Security
Discuss this question
48. The ciphertext "WIGYVI" was made with a Caesar shift of 4. What is the plaintext? ERUCES TFDVSF AMKCZM SECURE Answer: D) SECURE
Explanation: Shift each letter back by 4: WIGYVI → SECURE. Lesson 10.2 · Cyber Security
Discuss this question
49. Using a Caesar cipher with a shift of 4, what is the ciphertext of "SECURE"? OAYQNA WIGYVI VHFXUH XJHZWJ Answer: B) WIGYVI
Explanation: Shift each letter forward by 4: SECURE → WIGYVI. Lesson 10.2 · Cyber Security
Discuss this question
50. A digital signature on a contract provides: Anonymity Availability Compression Non-repudiation Answer: D) Non-repudiation
Explanation: The signer cannot deny signing it. Lesson 10.1 · Cyber Security
Discuss this question
Previous Page 2 of 6 Next
Practise NSCT: Cyber Security MCQs
More Computer Science chapters