MCQs / Computer Science / NSCT: Cyber Security

NSCT: Cyber Security MCQs — Computer Science

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.

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

  1. 78
  2. 77
  3. 60
  4. 18

Answer: B) 77

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

Discuss this question

2. In RSA, the primes are p = 5 and q = 11. What is n?

  1. 56
  2. 55
  3. 16
  4. 40

Answer: B) 55

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

Discuss this question

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

  1. 20
  2. 33
  3. 32
  4. 48

Answer: A) 20

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

Discuss this question

4. In RSA, the primes are p = 5 and q = 13. What is n?

  1. 66
  2. 48
  3. 65
  4. 18

Answer: C) 65

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

Discuss this question

5. How many possible keys does a 56-bit key have?

  1. 2 × 56
  2. 2^55
  3. 56^2
  4. 2^56

Answer: D) 2^56

Explanation: Each bit doubles the key space: 2^56. Lesson 10.2 · Cyber Security

Discuss this question

6. Which is an asymmetric (public-key) algorithm?

  1. RSA
  2. DES
  3. AES
  4. ChaCha20

Answer: A) RSA

Explanation: RSA uses a key pair. Lesson 10.2 · Cyber Security

Discuss this question

7. An attacker posts a comment containing a script that runs in other users' browsers. This is:

  1. SQL injection
  2. CSRF
  3. Cross-site scripting (XSS)
  4. Directory traversal

Answer: C) Cross-site scripting (XSS)

Explanation: Fix with output encoding and CSP. Lesson 10.3 · Cyber Security

Discuss this question

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

  1. 28
  2. 13
  3. 3
  4. 27

Answer: D) 27

Explanation: φ = 40; 3 × 27 = 81 = 2 × 40 + 1, so d = 27. Lesson 10.2 · Cyber Security

Discuss this question

9. Verifying who a user is, is called ; deciding what they may access is .

  1. Authorisation; authentication
  2. Authentication; authorisation
  3. Auditing; encryption
  4. Accounting; hashing

Answer: B) Authentication; authorisation

Explanation: AuthN vs AuthZ. Lesson 10.1 · Cyber Security

Discuss this question

10. Using a Caesar cipher with a shift of 5, what is the ciphertext of "CYBER"?

  1. IEHKX
  2. XTWZM
  3. HDGJW
  4. GCFIV

Answer: C) HDGJW

Explanation: Shift each letter forward by 5: CYBER → HDGJW. Lesson 10.2 · Cyber Security

Discuss this question

11. A Web Application Firewall (WAF) mainly protects against:

  1. Power failures
  2. Hard disk crashes
  3. Application-layer attacks such as SQL injection and XSS
  4. Physical theft

Answer: C) Application-layer attacks such as SQL injection and XSS

Explanation: It inspects HTTP traffic. Lesson 10.3 · Cyber Security

Discuss this question

12. Following an employee through a secured door without swiping a card is:

  1. Tailgating
  2. Phishing
  3. Spoofing
  4. Pretexting

Answer: A) Tailgating

Explanation: A physical social engineering attack. Lesson 10.1 · Cyber Security

Discuss this question

13. Under PECA 2016, accessing someone's computer system without permission is:

  1. Legal if no data is changed
  2. Legal for students
  3. A criminal offence
  4. Only a civil matter

Answer: C) A criminal offence

Explanation: Unauthorised access is punishable. Lesson 10.4 · Cyber Security

Discuss this question

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

  1. 143
  2. 142
  3. 120
  4. 168

Answer: C) 120

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

Discuss this question

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

  1. 17
  2. 44
  3. 7
  4. 43

Answer: D) 43

Explanation: φ = 60; 7 × 43 = 301 = 5 × 60 + 1, so d = 43. Lesson 10.2 · Cyber Security

Discuss this question

16. Redirecting users to a fake site by corrupting a DNS server's cache is:

  1. Smishing
  2. A logic bomb
  3. DNS poisoning (pharming)
  4. ARP spoofing

Answer: C) DNS poisoning (pharming)

Explanation: Users type the right URL but reach the wrong IP. Lesson 10.3 · Cyber Security

Discuss this question

17. How many possible keys does a 40-bit key have?

  1. 2^39
  2. 40^2
  3. 2 × 40
  4. 2^40

Answer: D) 2^40

Explanation: Each bit doubles the key space: 2^40. Lesson 10.2 · Cyber Security

Discuss this question

18. In RSA, the primes are p = 11 and q = 13. What is n?

  1. 120
  2. 144
  3. 24
  4. 143

Answer: D) 143

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

Discuss this question

19. Code that triggers its payload on a specific date or event is a:

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

Answer: D) Logic bomb

Explanation: e.g. deleting files if an employee is removed from payroll. Lesson 10.1 · Cyber Security

Discuss this question

20. Phishing carried out through SMS messages is called:

  1. Smishing
  2. Whaling
  3. Vishing
  4. Pharming

Answer: A) Smishing

Explanation: Vishing uses voice calls. Lesson 10.1 · Cyber Security

Discuss this question

21. Leaving infected USB drives in a car park for employees to plug in is:

  1. Vishing
  2. Whaling
  3. Smishing
  4. Baiting

Answer: D) Baiting

Explanation: Curiosity is exploited. Lesson 10.1 · Cyber Security

Discuss this question

22. A risk has a single loss expectancy (SLE) of Rs 300,000 and an annual rate of occurrence (ARO) of 0.1. What is the annual loss expectancy (ALE)?

  1. Rs 300,000
  2. Rs 3,000,000
  3. Rs 60,000
  4. Rs 30,000

Answer: D) Rs 30,000

Explanation: ALE = SLE × ARO = 300,000 × 0.1 = Rs 30,000. Lesson 10.4 · Cyber Security

Discuss this question

23. An email pretending to be from your bank asking you to "verify" your password is:

  1. SQL injection
  2. Tailgating
  3. DDoS
  4. Phishing

Answer: D) Phishing

Explanation: A social engineering attack. Lesson 10.1 · Cyber Security

Discuss this question

24. Which is a symmetric encryption algorithm?

  1. RSA
  2. AES
  3. Diffie–Hellman
  4. ECC

Answer: B) AES

Explanation: AES is the modern standard block cipher. Lesson 10.2 · Cyber Security

Discuss this question

25. 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

Page 1 of 6 Next

Practise NSCT: Cyber Security MCQs

More Computer Science chapters