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:

  1. Rootkit only
  2. Worm
  3. Trojan
  4. 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:

  1. CSRF
  2. Phishing
  3. SQL injection
  4. 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?

  1. 40 bits
  2. 10 bits
  3. 6 bits
  4. 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))?

  1. 29
  2. 30
  3. 5
  4. 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?

  1. It is a hash function
  2. Its key space of 2^256 keys is far too large to search
  3. Its algorithm is secret
  4. 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:

  1. XSS
  2. SQL injection
  3. Brute force
  4. 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)

  1. 8
  2. 6
  3. 9
  4. 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:

  1. Biometric only
  2. Multi-factor authentication
  3. Authorisation
  4. 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:

  1. Restart it repeatedly
  2. Email all staff the infected file
  3. Pay the ransom immediately
  4. 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:

  1. Social engineering
  2. Full public dumping
  3. Credential stuffing
  4. 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:

  1. Stream cipher with a random key
  2. Hash function
  3. Substitution cipher
  4. 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?

  1. SHA-3
  2. bcrypt
  3. SHA-256
  4. 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?

  1. 8 bits
  2. 26 bits
  3. 38 bits
  4. 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)?

  1. 96
  2. 60
  3. 76
  4. 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:

  1. VPN
  2. Honeypot
  3. Botnet
  4. 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)?

  1. 128
  2. 64
  3. 32
  4. 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:

  1. White-box test
  2. Black-box test
  3. Grey-box test
  4. 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:

  1. SQL injection
  2. CSRF
  3. XSS
  4. 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?

  1. QBLJTUBO
  2. DOYWGHOB
  3. PAKISTAN
  4. 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)?

  1. 20
  2. 12
  3. 21
  4. 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:

  1. Brute-force attack
  2. DDoS attack
  3. Logic bomb
  4. 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:

  1. Integrity
  2. Availability
  3. Authorisation
  4. 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?

  1. ERUCES
  2. TFDVSF
  3. AMKCZM
  4. 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"?

  1. OAYQNA
  2. WIGYVI
  3. VHFXUH
  4. 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:

  1. Anonymity
  2. Availability
  3. Compression
  4. 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