MCQs / Computer Science / NSCT: Computer Networks & Cloud Computing

NSCT: Computer Networks & Cloud Computing MCQs — Computer Science

141 multiple-choice questions on NSCT: Computer Networks & Cloud Computing 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. What is the dotted-decimal subnet mask for the prefix /28?

  1. 255.255.255.224
  2. 255.255.255.248
  3. 255.255.255.240
  4. 255.255.240.0

Answer: C) 255.255.255.240

Explanation: /28 means 28 leading 1-bits: 255.255.255.240. Lesson 7.2 · Computer Networks & Cloud Computing

Discuss this question

2. A host has the address 10.10.10.99/29. What is the broadcast address of its subnet?

  1. 10.10.10.96
  2. 10.10.10.103
  3. 10.10.10.102
  4. 10.10.10.104

Answer: B) 10.10.10.103

Explanation: Network 10.10.10.96, block size 8, so broadcast = 10.10.10.103. Lesson 7.2 · Computer Networks & Cloud Computing

Discuss this question

3. Which OSI layer provides end-to-end delivery, port numbers and reliability?

  1. Network
  2. Physical
  3. Presentation
  4. Transport

Answer: D) Transport

Explanation: TCP and UDP work here. Lesson 7.1 · Computer Networks & Cloud Computing

Discuss this question

4. What is the dotted-decimal subnet mask for the prefix /25?

  1. 255.255.255.0
  2. 255.255.255.192
  3. 255.255.128.0
  4. 255.255.255.128

Answer: D) 255.255.255.128

Explanation: /25 means 25 leading 1-bits: 255.255.255.128. Lesson 7.2 · Computer Networks & Cloud Computing

Discuss this question

5. A host has the address 10.0.5.130/25. What is its network address?

  1. 10.0.6.0
  2. 10.0.5.255
  3. 10.0.5.130
  4. 10.0.5.128

Answer: D) 10.0.5.128

Explanation: Block size 128: the address falls in the block starting at 10.0.5.128. Lesson 7.2 · Computer Networks & Cloud Computing

Discuss this question

6. A MAC address is how many bits long?

  1. 128
  2. 64
  3. 32
  4. 48

Answer: D) 48

Explanation: Six bytes in hexadecimal. Lesson 7.2 · Computer Networks & Cloud Computing

Discuss this question

7. How many usable host addresses are available in the network 10.0.0.0/25?

  1. 126
  2. 127
  3. 63
  4. 128

Answer: A) 126

Explanation: Host bits = 7; usable = 2^7 − 2 = 126. Lesson 7.2 · Computer Networks & Cloud Computing

Discuss this question

8. In the shared responsibility model, who is responsible for securing user accounts and data stored in an IaaS virtual machine?

  1. The customer
  2. Nobody
  3. The ISP
  4. The cloud provider entirely

Answer: A) The customer

Explanation: The provider secures the underlying infrastructure. Lesson 7.5 · Computer Networks & Cloud Computing

Discuss this question

9. A department needs 12 host addresses in one subnet with the least waste. Which prefix should be used?

  1. /29
  2. /26
  3. /27
  4. /28

Answer: D) /28

Explanation: 2^4 − 2 = 14 ≥ 12, so 4 host bits → /28. Lesson 7.2 · Computer Networks & Cloud Computing

Discuss this question

10. A host has the address 10.4.7.66/30. What is its network address?

  1. 10.4.7.64
  2. 10.4.7.66
  3. 10.4.7.68
  4. 10.4.7.67

Answer: A) 10.4.7.64

Explanation: Block size 4: the address falls in the block starting at 10.4.7.64. Lesson 7.2 · Computer Networks & Cloud Computing

Discuss this question

11. For the host 10.4.7.66/30, what is the range of usable host addresses in its subnet?

  1. 10.4.7.65 – 10.4.7.67
  2. 10.4.7.64 – 10.4.7.66
  3. 10.4.7.65 – 10.4.7.66
  4. 10.4.7.64 – 10.4.7.67

Answer: C) 10.4.7.65 – 10.4.7.66

Explanation: Exclude the network (10.4.7.64) and broadcast (10.4.7.67) addresses. Lesson 7.2 · Computer Networks & Cloud Computing

Discuss this question

12. SSH uses port:

  1. 23
  2. 21
  3. 22
  4. 443

Answer: C) 22

Explanation: SSH replaced insecure Telnet (port 23). Lesson 7.3 · Computer Networks & Cloud Computing

Discuss this question

13. A host has the address 172.31.8.20/22. What is its network address?

  1. 172.31.8.0
  2. 172.31.8.20
  3. 172.31.11.255
  4. 172.31.12.0

Answer: A) 172.31.8.0

Explanation: Block size 1024: the address falls in the block starting at 172.31.8.0. Lesson 7.2 · Computer Networks & Cloud Computing

Discuss this question

14. A host has the address 192.168.20.37/28. What is its network address?

  1. 192.168.20.37
  2. 192.168.20.48
  3. 192.168.20.32
  4. 192.168.20.47

Answer: C) 192.168.20.32

Explanation: Block size 16: the address falls in the block starting at 192.168.20.32. Lesson 7.2 · Computer Networks & Cloud Computing

Discuss this question

15. Is 10.255.255.254 a private (RFC 1918) IPv4 address?

  1. Only inside a VPN
  2. No
  3. Only for IPv6
  4. Yes

Answer: D) Yes

Explanation: Private ranges: 10.0.0.0/8, 172.16.0.0/12 (172.16–172.31) and 192.168.0.0/16. Lesson 7.2 · Computer Networks & Cloud Computing

Discuss this question

16. Wi-Fi is defined by which IEEE standard?

  1. 802.3
  2. 802.11
  3. 802.15
  4. 802.1Q

Answer: B) 802.11

Explanation: 802.3 is Ethernet. Lesson 7.4 · Computer Networks & Cloud Computing

Discuss this question

17. A department needs 6 host addresses in one subnet with the least waste. Which prefix should be used?

  1. /29
  2. /30
  3. /27
  4. /28

Answer: A) /29

Explanation: 2^3 − 2 = 6 ≥ 6, so 3 host bits → /29. Lesson 7.2 · Computer Networks & Cloud Computing

Discuss this question

18. The most common LAN topology today, with all devices connected to a central switch, is:

  1. Mesh
  2. Star
  3. Ring
  4. Bus

Answer: B) Star

Explanation: A failed cable affects only one device. Lesson 7.1 · Computer Networks & Cloud Computing

Discuss this question

19. Which protocol lets you read email on multiple devices while keeping it on the server?

  1. IMAP
  2. FTP
  3. POP3
  4. SMTP

Answer: A) IMAP

Explanation: POP3 usually downloads and removes mail. Lesson 7.3 · Computer Networks & Cloud Computing

Discuss this question

20. Which protocol provides reliable, connection-oriented delivery?

  1. TCP
  2. UDP
  3. IP
  4. ICMP

Answer: A) TCP

Explanation: TCP uses acknowledgements and retransmissions. Lesson 7.3 · Computer Networks & Cloud Computing

Discuss this question

21. The TCP three-way handshake is:

  1. SYN, ACK, FIN
  2. HELLO, OK, DONE
  3. SYN, SYN-ACK, ACK
  4. ACK, SYN, FIN

Answer: C) SYN, SYN-ACK, ACK

Explanation: It establishes a connection. Lesson 7.3 · Computer Networks & Cloud Computing

Discuss this question

22. Adding more servers behind a load balancer is:

  1. Vertical scaling
  2. Normalization
  3. Horizontal scaling
  4. Virtual LAN

Answer: C) Horizontal scaling

Explanation: Vertical scaling means a bigger single machine. Lesson 7.5 · Computer Networks & Cloud Computing

Discuss this question

23. A router forwards traffic based on:

  1. Cable colours
  2. URLs
  3. MAC addresses only
  4. IP addresses

Answer: D) IP addresses

Explanation: Routers are layer-3 devices. Lesson 7.1 · Computer Networks & Cloud Computing

Discuss this question

24. For the host 192.168.3.200/26, what is the range of usable host addresses in its subnet?

  1. 192.168.3.192 – 192.168.3.255
  2. 192.168.3.193 – 192.168.3.255
  3. 192.168.3.192 – 192.168.3.254
  4. 192.168.3.193 – 192.168.3.254

Answer: D) 192.168.3.193 – 192.168.3.254

Explanation: Exclude the network (192.168.3.192) and broadcast (192.168.3.255) addresses. Lesson 7.2 · Computer Networks & Cloud Computing

Discuss this question

25. Is 172.20.5.1 a private (RFC 1918) IPv4 address?

  1. Only inside a VPN
  2. Yes
  3. No
  4. Only for IPv6

Answer: B) Yes

Explanation: Private ranges: 10.0.0.0/8, 172.16.0.0/12 (172.16–172.31) and 192.168.0.0/16. Lesson 7.2 · Computer Networks & Cloud Computing

Discuss this question

Page 1 of 6 Next

Practise NSCT: Computer Networks & Cloud Computing MCQs

More Computer Science chapters