Computer Knowledge

Computer Networks

2,614 Questions

Computer networks involve the architecture, protocols, and security measures used for digital communication. This collection covers OSI model layers, IP addressing, data transmission, and cryptographic standards. These concepts are vital for the computer knowledge sections of banking and government exams.

OSI model layersNetwork protocolsIP subnet maskingData encryption standardsServer configurationsNetwork commands

Computer Networks Questions

Multiple choice

What is the default subnet mask for a Class C network?

  1. 255.255.255.0

  2. 255.255.255.128

  3. 255.255.255.192

  4. 255.255.255.224

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

A Class C network is identified by the third octet of the IP address ranging from 192 to 223. The default subnet mask for a Class C network is 255.255.255.0, which provides 254 usable host addresses (2^8 - 2).

Multiple choice

Which of the following is a private IPv4 address range?

  1. 10.0.0.0 - 10.255.255.255

  2. 172.16.0.0 - 172.31.255.255

  3. 192.168.0.0 - 192.168.255.255

  4. All of the above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Private IPv4 address ranges are reserved for use within private networks and are not routable on the public Internet. The three private IPv4 address ranges are 10.0.0.0 - 10.255.255.255, 172.16.0.0 - 172.31.255.255, and 192.168.0.0 - 192.168.255.255.

Multiple choice

Which of the following is a valid IPv6 address?

  1. 2001:0db8:85a3:0000:0000:8a2e:0370:7334

  2. 2001:0db8:85a3:0000:0000:8a2e:0370:7335

  3. 2001:0db8:85a3:0000:0000:8a2e:0370:7336

  4. 2001:0db8:85a3:0000:0000:8a2e:0370:7337

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

A valid IPv6 address consists of eight hexadecimal groups, each representing 16 bits. The address 2001:0db8:85a3:0000:0000:8a2e:0370:7334 is a valid IPv6 address because each hexadecimal group is a valid hexadecimal number and the address follows the correct format.

Multiple choice

Which of the following is a valid Class B network address?

  1. 172.16.0.0

  2. 192.168.0.0

  3. 10.0.0.0

  4. 224.0.0.0

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

A Class B network address is identified by the second octet of the IP address ranging from 128 to 191. The address 172.16.0.0 is a valid Class B network address because the second octet is within the specified range.

Multiple choice

Which of the following is a valid MAC address?

  1. 00:11:22:33:44:55

  2. 00:11:22:33:44:56

  3. 00:11:22:33:44:57

  4. 00:11:22:33:44:58

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

A valid MAC address consists of six hexadecimal digits, separated by colons. Each hexadecimal digit represents four bits. The address 00:11:22:33:44:55 is a valid MAC address because it follows the correct format and each hexadecimal digit is a valid hexadecimal number.

Multiple choice

What is the purpose of a network address translation (NAT) device?

  1. To translate public IP addresses to private IP addresses

  2. To translate private IP addresses to public IP addresses

  3. To provide access to the Internet

  4. All of the above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

A network address translation (NAT) device serves multiple purposes. It translates public IP addresses to private IP addresses, allowing multiple devices on a private network to share a single public IP address. It also translates private IP addresses to public IP addresses, allowing devices on a private network to access the Internet. Additionally, it provides access to the Internet by routing traffic between the private network and the public Internet.

Multiple choice

Which of the following is a valid wildcard mask for a subnet mask of 255.255.255.192?

  1. 0.0.0.63

  2. 0.0.0.127

  3. 0.0.0.191

  4. 0.0.0.255

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

A wildcard mask is the inverse of a subnet mask. It is used to identify the host portion of an IP address. The wildcard mask for a subnet mask of 255.255.255.192 is 0.0.0.63 because 255.255.255.192 = 11111111.11111111.11111111.11000000 and 0.0.0.63 = 00000000.00000000.00000000.00111111.

Multiple choice

What is VPC Peering?

  1. A method of connecting two VPCs within the same region

  2. A method of connecting two VPCs across different regions

  3. A method of connecting two VPCs across different accounts

  4. A method of connecting two VPCs across different clouds

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

VPC Peering allows you to connect two VPCs within the same region to each other, enabling communication between resources in both VPCs.

Multiple choice

What are the prerequisites for VPC Peering?

  1. Both VPCs must be in the same region

  2. Both VPCs must have the same CIDR block

  3. Both VPCs must be owned by the same account

  4. Both VPCs must be in the same project

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The only prerequisite for VPC Peering is that both VPCs must be in the same region.

Multiple choice

What is the difference between VPC Peering and Direct Connect?

  1. VPC Peering is used to connect VPCs within the same region, while Direct Connect is used to connect VPCs to on-premises networks

  2. VPC Peering is more secure than Direct Connect

  3. VPC Peering is easier to configure than Direct Connect

  4. VPC Peering is less expensive than Direct Connect

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The main difference between VPC Peering and Direct Connect is that VPC Peering is used to connect VPCs within the same region, while Direct Connect is used to connect VPCs to on-premises networks.

Multiple choice

How do you create a VPC Peering connection?

  1. From the VPC console, select the VPC you want to peer with and click on the 'Peering' tab

  2. From the VPC console, select the VPC you want to peer with and click on the 'Connections' tab

  3. From the VPC console, select the VPC you want to peer with and click on the 'Settings' tab

  4. From the VPC console, select the VPC you want to peer with and click on the 'Actions' tab

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

To create a VPC Peering connection, you need to go to the VPC console, select the VPC you want to peer with, and click on the 'Peering' tab.

Multiple choice

What is the default state of a VPC Peering connection?

  1. Pending

  2. Active

  3. Rejected

  4. Expired

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The default state of a VPC Peering connection is 'Pending'. Once the connection is accepted by the other VPC, it will become 'Active'.

Multiple choice

How do you accept a VPC Peering connection request?

  1. From the VPC console, select the VPC you want to peer with and click on the 'Peering' tab

  2. From the VPC console, select the VPC you want to peer with and click on the 'Connections' tab

  3. From the VPC console, select the VPC you want to peer with and click on the 'Settings' tab

  4. From the VPC console, select the VPC you want to peer with and click on the 'Actions' tab

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

To accept a VPC Peering connection request, you need to go to the VPC console, select the VPC you want to peer with, and click on the 'Peering' tab.

Multiple choice

What is the maximum size of a CIDR block that can be used for VPC Peering?

  1. /16

  2. /24

  3. /28

  4. /32

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The maximum size of a CIDR block that can be used for VPC Peering is /16.

Multiple choice

Can VPC Peering be used to connect VPCs across different accounts?

  1. Yes

  2. No

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

VPC Peering can be used to connect VPCs across different accounts, but both accounts must be in the same organization.