Computer Knowledge

Computer Networks

2,461 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 technology
  1. IP address

  2. Default gateway

  3. Subnet Mask

  4. DNS server

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

To solve this question, the user needs to have a basic understanding of TCP/IP network and the role of each component in it.

In a TCP/IP network, a computer needs the following information to communicate with other devices:

  • IP address: uniquely identifies the device on the network.
  • Default gateway: the IP address of the device that acts as a gateway to the external network.
  • Subnet mask: determines the network portion and the host portion of the IP address.
  • DNS server: resolves domain names to IP addresses.

Out of these options, all of them are vital for a computer in a TCP/IP network except for D. DNS server.

Option D, DNS server, is used to resolve domain names to IP addresses. Although DNS is a crucial component of the internet, a computer can still communicate on a TCP/IP network without a DNS server, as long as it knows the IP address of the device it needs to connect to.

Therefore, the answer is:

The Answer is: D

Multiple choice technology
  1. IP

  2. ICMP

  3. RARP

  4. All of the above

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

IP (Internet Protocol), ICMP (Internet Control Message Protocol), and RARP (Reverse Address Resolution Protocol) all operate at the Network layer (Layer 3) of the OSI model. IP handles routing, ICMP handles error reporting and diagnostics, and RARP resolves MAC addresses to IP addresses. Therefore, all three operate at the network layer.

Multiple choice technology
  1. added

  2. removed

  3. rearranged

  4. modified

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

As data packets move from lower to upper layers in the OSI model, headers are removed during decapsulation (encapsulation reversal). Each layer removes the header added by its corresponding layer on the sending side. Option A (added) describes the sending direction, while options C and D are incorrect.

Multiple choice technology
  1. Data representation

  2. Dialog control

  3. Remote job execution

  4. Creating logical connections

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

The Session layer (Layer 5) provides dialog control, which manages the conversation between two applications. It establishes, maintains, and synchronizes communication sessions. Data representation is a Presentation layer function. Remote job execution is not a primary Session layer function. Creating logical connections is more associated with lower layers.

Multiple choice technology
  1. Flow control

  2. Addressing

  3. Retransmission of packets as required

  4. Proper sequencing of the packets

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

TCP does not provide addressing - that is handled by IP at the network layer. TCP provides flow control (managing data transmission rates), retransmission of lost packets, and proper sequencing of packets through sequence numbers. Addressing (IP addresses and port numbers) is handled by the IP layer and the concept of sockets, not TCP itself.

Multiple choice technology operating systems
  1. Use nmap command

  2. Modify the port number in /etc/hosts file.

  3. Modify the port number in /etc/services file

  4. Modify the port number in /etc/resolv.conf file

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

The /etc/services file maps human-readable service names to their corresponding port numbers and protocols. Modifying this mapping adjusts how services resolve their ports. Distractors like nmap are scanning tools, while /etc/hosts and resolv.conf handle host name resolution configurations.

Multiple choice technology operating systems
  1. Dynamic DNS

  2. Root DNS

  3. CNAME

  4. Mail exchanger

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

An MX record is a Mail Exchanger resource record in the Domain Name System that specifies the mail server responsible for accepting email messages on behalf of a domain. Distractors like CNAME or Dynamic DNS represent host aliasing and dynamic updates.

Multiple choice technology operating systems
  1. use access file

  2. use mail file

  3. Configure single domain

  4. use netstat command

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

In mail servers like sendmail, the access file (typically /etc/mail/access) is used to control mail relay and acceptance. You can block specific senders, domains, or IP addresses by adding reject entries to this database. This file is then compiled into a database format that the mail server uses to filter incoming connections.

Multiple choice technology
  1. the route in inet.3

  2. the route in inet.0

  3. the route with the lower metric

  4. It will randomly choose between inet.0 and inet.3.

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

In Junos, inet.3 is reserved for BGP next-hop resolution using BGP-learned routes. When equal preference routes exist in both inet.0 and inet.3, BGP prefers the inet.3 version for next-hop selection.

Multiple choice technology
  1. area ID

  2. router ID

  3. loopback address

  4. IP address of interface on broadcast network

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

When all OSPF routers on a broadcast network have equal priority, the router ID becomes the tiebreaker. The highest router ID is elected DR or BDR. Area ID, loopback address, and interface IP address are not used in this decision.

Multiple choice technology
  1. show bgp received routes x.x.x.x

  2. show bgp advertised routes x.x.x.x

  3. show route receive-protocol bgp x.x.x.x

  4. show route advertising-protocol bgp x.x.x.x

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

In Junos, 'show route receive-protocol bgp x.x.x.x' displays routes received from the specified peer. 'show bgp received routes' and 'show bgp advertised routes' are not valid syntax. 'advertising-protocol' shows what is sent, not received.

Multiple choice technology
  1. inet.0

  2. inet.1

  3. inet.2

  4. inet.3

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

inet.0 is the default routing table for unicast IPv4 routes in Junos devices. The other routing tables serve specific purposes: inet.1 is used for the multicast forwarding cache, inet.2 for unicast routes used for multicast reverse-path forwarding (RPF) checks, and inet.3 for MPLS label-switched paths (LSPs).

Multiple choice technology
  1. show isis neighbor

  2. show isis interface

  3. show interface route

  4. show interface protocols

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

'show isis interface' displays IS-IS protocol status specifically at the interface level, showing which interfaces have IS-IS configured and their operational state. Option A shows neighbor adjacencies but doesn't verify interface configuration. Options C and D are incorrect command syntax in Junos.

Multiple choice technology
  1. internal and external BGP routes

  2. two routes received from the same AS

  3. two routes received from the same routing protocol

  4. two routes received from different routing protocol

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

Route preference (also called administrative distance) is primarily used to select between routes learned from different routing protocols to the same destination. When multiple routing protocols provide routes to the same prefix, the route with the lowest preference value is selected. Option D is grammatically incorrect ('protocol' vs 'protocols'). Route preference does not differentiate between internal/external BGP (A) - that's what LOCAL_PREF is for.