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
  1. Switch SW2 must be configured as a VTP client.

  2. The switches must be interconnected via an access link.

  3. The switches must be configured with the same VTP domain name.

  4. Both switches must be configured with the same VTP revision number.

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

VTP (VLAN Trunking Protocol) requires switches to be in the same domain to exchange VLAN information. Without matching domain names, VTP advertisements are ignored between switches, preventing VLAN synchronization. The revision number automatically synchronizes once domains match - it should NOT be manually set higher.

Multiple choice
  1. network 0.0.0.0 255.255.255.255 area 0

  2. network 192.168.0.0 0.0.255.255 area 0

  3. network 255.255.255.255 0.0.0.0 area 0

  4. network 192.168.1.2 0.0.0.0 area 0 network 192.168.2.2 0.0.0.0 area 0 network 172.16.3.2 0.0.0.0 area 0

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

The correct command sequence for configuring OSPF in a single area configuration is:

router ospf <process-id> network <network address> <wildcard mask> area <area number>

Answer A would include all interfaces on the router, the commands in answer D define them individually per interface.

Multiple choice
  1. a query for network 192.168.0.0/28

  2. an acknowledgment packet to 224.0.0.9

  3. an update packet that is sent to 255.255.255.255

  4. a packet that contains the new routing table for R2

  5. unicast update packets to 192.168.1.1 and 192.168.2.1

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

In RIP, when a directly connected network goes down, the router immediately sends triggered updates to its directly connected neighbors containing the withdrawn route. This is a rapid convergence mechanism - unlike regular periodic updates, triggered updates happen immediately to propagate topology changes faster through the network.

Multiple choice
  1. It indicates that there are 8 hops between this and the 10.0.0.0 network.

  2. It represents the time, in milliseconds, it takes for a ping to reply when sent to the 10.0.0.0 network.

  3. It indicates that there are 8 subnets in the destination network to which the router can forward packets.

  4. It indicates the number of consecutive bits, from the left, in the destination IP address of a packet that must match 10.0.0.0 to use that route.

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

CIDR notation /8 indicates a subnet mask of 255.0.0.0, meaning the first 8 bits (first octet) of the destination IP must match 10.x.x.x for this route to be used. This is the prefix length - it tells the router how many bits, starting from the left, must match the network address. The remaining bits can vary for individual host addresses within that network.

Multiple choice
  1. It will deny TCP traffic to the Internet if the traffic is sourced from the 172.22.10.0/24 network.

  2. It will not allow TCP traffic coming from the Internet to enter the network 172.22.10.0/24.

  3. It will allow any TCP traffic from the Internet to enter the network 172.22.10.0/24.

  4. It will permit any TCP traffic that originated from network 172.22.10.0/24 to return inbound on the S0/0/0 interface.

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

ACL 110 permits TCP traffic from 172.22.10.0/24 and denies all other TCP traffic. When applied inbound on S0/0/0, it allows return traffic for sessions that originated from the internal network 172.22.10.0/24. This is because stateful firewalls or ACLs with established keyword permit return traffic for outbound-initiated connections - the ACL allows traffic FROM that network to return inbound.

Multiple choice
  1. Conduct a performance test and compare with the baseline that was established previously.

  2. Determine performance on the intranet by monitoring load times of company web pages from remote sites.

  3. Interview departmental administrative assistants and determine if they think load time for web pages has improved.

  4. Compare the hit counts on the company web server for the current week to the values that were recorded in previous weeks.

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

The only valid way to measure performance impact is to compare current performance against a previously established baseline. A baseline provides the reference point for what normal performance looked like before the change. Options B, C, and D either measure from external sources (uncontrolled variables), rely on subjective perception, or measure traffic volume rather than performance - none of which isolate the effect of the configuration change.

Multiple choice
  1. 0 to 255

  2. 0 to 1023

  3. 1024 to 49151

  4. 49152 to 65535

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

Port numbers 0-1023 are the well-known ports, reserved by IANA for standard services like HTTP (80), HTTPS (443), SSH (22), FTP (21), etc. These require privileged access to bind to. Ports 1024-49151 are registered ports, and 49152-65535 are dynamic/private ports used for ephemeral connections by clients.

Multiple choice
  1. It is allowed because of the implicit deny any.

  2. It is dropped because it does not match any of the items in the ACL.

  3. It is allowed because line 10 of the ACL allows packets to 192.168.0.0/16.

  4. It is allowed because line 20 of the ACL allows packets to the host 192.168.10.13.

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

Every ACL has an implicit deny any at the end. The packet with source 10.1.1.1 and destination 192.168.10.13 doesn't match line 10 (which permits 192.168.0.0/16) OR line 20 (which permits host 192.168.10.1). Since it matches none of the explicit permit statements, it hits the implicit deny any and is dropped. The IP doesn't match line 20 (192.168.10.1), and line 10 permits the 192.168.0.0/16 network but the question implies it doesn't match.

Multiple choice
  1. RARP

  2. ARP

  3. ICMP

  4. Boot P

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

ARP is used to find a MAC address. Because the routers build new MAC headers and trailers, and because the new headers contain MAC addresses, the routers must have some way to decide what MAC addresses to use. An example of how the router determines which MAC address to use is the IP Address Resolution Protocol (ARP) protocol. ARP is used to dynamically learn the MAC address of some IP host.

Multiple choice
  1. RouterB# router rip

  2. RouterB(router)# network 210.36.7.0

  3. RouterB(config)# router rip

  4. RouterB(config-router)# network 198.16.4.0

  5. RouterB(config-router)# network 210.36.7.0

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

To enable RIP on Router B for all connected networks, you must: enter global config mode (config#), start RIP configuration (router rip), then specify each network with the 'network' command. Option B is correct because it specifies the network command at the appropriate config-router prompt level. Option A is incomplete, Option C is at wrong prompt, Options D/E are incomplete.

Multiple choice
  1. Incoming traffic with VLAN ID 0 is processed by interface fa0/0.

  2. Incoming traffic that has a VLAN ID of 2 is processed by subinterface fa0/0.2.

  3. Both subinterfaces remain up with line protocol up, even if fa0/0 line protocol is down.

  4. Subinterfaces use unique MAC addresses by adding the 802.1Q VLAN ID to the hardware address.

  5. Traffic inbound on this router is processed by different subinterfaces, depending on the VLAN from which the traffic originated.

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

Router-on-a-stick uses subinterfaces with 802.1Q encapsulation to route between VLANs. Each subinterface is configured with an encapsulation dot1q command. When traffic arrives on the physical interface with a VLAN tag, the router directs it to the matching subinterface based on that VLAN ID. Subinterface fa0/0.2 handles VLAN 2 traffic. The physical interface fa0/0 itself doesn't process the VLAN-tagged traffic - the subinterfaces do based on VLAN tags.

Multiple choice
  1. Flow control

  2. Error control

  3. Authentication

  4. Synchronous communication

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

HDLC is a basic WAN encapsulation protocol that provides no authentication mechanism. PPP was designed with extensible features including authentication protocols (PAP and CHAP) that can verify the identity of connecting devices before establishing a full connection.

Multiple choice
  1. Router1 will perform recursive lookup and packet will exit S0/0.

  2. Router1 will perform recursive lookup and packet will exit S0/1.

  3. There is no matching interface associated with network 172.16.0.0, so packets will be dropped.

  4. There is no matching interface associated with network 172.16.0.0, so packets will take gateway of last resort and exit out S0/2.

Reveal answer Fill a bubble to check yourself
A Correct answer