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 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. DNS resolution

  2. Name resolution priority

  3. Host configuration.

  4. backup Configuration

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

The /etc/nsswitch.conf file configures the Name Service Switch, determining the lookup sources and order of priority for system databases such as hosts, passwords, and groups. Distractors referring to backup configurations or pure DNS resolution describe unrelated system settings.

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 programming languages
  1. By using some user defined(Custom) Data Queue

  2. By using Microsoft Messaging Queue (MSMQ)

  3. Both of the above

  4. None of the above

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

Microsoft Message Queue (MSMQ) is specifically designed to handle message loss and ensure reliable delivery of packets/requests. It provides queuing, guaranteed delivery, and recovery mechanisms. Custom data queues (option A) would need to implement these features from scratch.

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).