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
What is the default subnet mask for a Class C network?
-
255.255.255.0
-
255.255.255.128
-
255.255.255.192
-
255.255.255.224
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).
Which of the following is a private IPv4 address range?
-
10.0.0.0 - 10.255.255.255
-
172.16.0.0 - 172.31.255.255
-
192.168.0.0 - 192.168.255.255
-
All of the above
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.
Which of the following is a valid IPv6 address?
-
2001:0db8:85a3:0000:0000:8a2e:0370:7334
-
2001:0db8:85a3:0000:0000:8a2e:0370:7335
-
2001:0db8:85a3:0000:0000:8a2e:0370:7336
-
2001:0db8:85a3:0000:0000:8a2e:0370:7337
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.
Which of the following is a valid Class B network address?
-
172.16.0.0
-
192.168.0.0
-
10.0.0.0
-
224.0.0.0
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.
Which of the following is a valid MAC address?
-
00:11:22:33:44:55
-
00:11:22:33:44:56
-
00:11:22:33:44:57
-
00:11:22:33:44:58
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.
What is the purpose of a network address translation (NAT) device?
-
To translate public IP addresses to private IP addresses
-
To translate private IP addresses to public IP addresses
-
To provide access to the Internet
-
All of the above
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.
Which of the following is a valid wildcard mask for a subnet mask of 255.255.255.192?
-
0.0.0.63
-
0.0.0.127
-
0.0.0.191
-
0.0.0.255
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.
-
A method of connecting two VPCs within the same region
-
A method of connecting two VPCs across different regions
-
A method of connecting two VPCs across different accounts
-
A method of connecting two VPCs across different clouds
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.
What are the prerequisites for VPC Peering?
-
Both VPCs must be in the same region
-
Both VPCs must have the same CIDR block
-
Both VPCs must be owned by the same account
-
Both VPCs must be in the same project
A
Correct answer
Explanation
The only prerequisite for VPC Peering is that both VPCs must be in the same region.
What is the difference between VPC Peering and Direct Connect?
-
VPC Peering is used to connect VPCs within the same region, while Direct Connect is used to connect VPCs to on-premises networks
-
VPC Peering is more secure than Direct Connect
-
VPC Peering is easier to configure than Direct Connect
-
VPC Peering is less expensive than Direct Connect
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.
How do you create a VPC Peering connection?
-
From the VPC console, select the VPC you want to peer with and click on the 'Peering' tab
-
From the VPC console, select the VPC you want to peer with and click on the 'Connections' tab
-
From the VPC console, select the VPC you want to peer with and click on the 'Settings' tab
-
From the VPC console, select the VPC you want to peer with and click on the 'Actions' tab
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.
What is the default state of a VPC Peering connection?
-
Pending
-
Active
-
Rejected
-
Expired
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'.
How do you accept a VPC Peering connection request?
-
From the VPC console, select the VPC you want to peer with and click on the 'Peering' tab
-
From the VPC console, select the VPC you want to peer with and click on the 'Connections' tab
-
From the VPC console, select the VPC you want to peer with and click on the 'Settings' tab
-
From the VPC console, select the VPC you want to peer with and click on the 'Actions' tab
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.
What is the maximum size of a CIDR block that can be used for VPC Peering?
A
Correct answer
Explanation
The maximum size of a CIDR block that can be used for VPC Peering is /16.
Can VPC Peering be used to connect VPCs across different accounts?
A
Correct answer
Explanation
VPC Peering can be used to connect VPCs across different accounts, but both accounts must be in the same organization.