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
-
added
-
removed
-
rearranged
-
modified
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.
-
Data representation
-
Dialog control
-
Remote job execution
-
Creating logical connections
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.
-
Flow control
-
Addressing
-
Retransmission of packets as required
-
Proper sequencing of the packets
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.
-
Send the mail to spamwebsite owner
-
Block 25 port in the firewall
-
Change the port number of SMTP
-
Clean the system with anti
-
DNS resolution
-
Name resolution priority
-
Host configuration.
-
backup Configuration
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.
-
Use nmap command
-
Modify the port number in /etc/hosts file.
-
Modify the port number in /etc/services file
-
Modify the port number in /etc/resolv.conf file
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.
-
Dynamic DNS
-
Root DNS
-
CNAME
-
Mail exchanger
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.
-
use access file
-
use mail file
-
Configure single domain
-
use netstat command
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.
-
By using some user defined(Custom) Data Queue
-
By using Microsoft Messaging Queue (MSMQ)
-
Both of the above
-
None of the above
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.
-
sendRedirect for redirect request on server side forward process
-
SendRedirect on client side process and forward on browser side process
-
sendRedirect for slow and forward for fast
-
none of these
-
the route in inet.3
-
the route in inet.0
-
the route with the lower metric
-
It will randomly choose between inet.0 and inet.3.
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.
-
area ID
-
router ID
-
loopback address
-
IP address of interface on broadcast network
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.
-
ABR
-
ASBR
-
internal router
-
backbone router
B
Correct answer
Explanation
An Autonomous System Boundary Router (ASBR) redistributes routes between OSPF and other routing protocols. ABR connects OSPF areas. Internal routers stay within one area. Backbone routers are in area 0.
-
show bgp received routes x.x.x.x
-
show bgp advertised routes x.x.x.x
-
show route receive-protocol bgp x.x.x.x
-
show route advertising-protocol bgp x.x.x.x
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.
-
inet.0
-
inet.1
-
inet.2
-
inet.3
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).