Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

101.

Typically the TCP port used by SMTP is _________(a) 25(b) 35(c) 50(d) 15The question was posed to me by my school teacher while I was bunking the class.I want to ask this question from SMTP topic in section Application Layer of Computer Network

Answer»

The CORRECT choice is (a) 25

To explain I would say: The ports 15, 35 and 50 are all UDP ports and SMTP only uses TCP port 25 for reliability.

102.

Internet mail places each object in _________(a) Separate messages for each object(b) One message(c) Varies with number of objects(d) Multiple messages for each objectI had been asked this question in a job interview.Enquiry is from SMTP topic in portion Application Layer of Computer Network

Answer» RIGHT OPTION is (b) One MESSAGE

Explanation: It places all objects into one message as it wouldn’t be efficient enough if there are different messages for each OBJECT. The objects include the text and all the MULTIMEDIA to be sent.
103.

Choose the statement which is wrong incase of SMTP?(a) It requires message to be in 7bit ASCII format(b) It is a pull protocol(c) It transfers files from one mail server to another mail server(d) SMTP is responsible for the transmission of the mail through the internetI got this question in an internship interview.My enquiry is from SMTP topic in division Application Layer of Computer Network

Answer»

Correct OPTION is (b) It is a pull PROTOCOL

The explanation: In SMTP, the sending mail server pushes the mail to receiving mail server hence it is push protocol. In a pull protocol such as HTTP, the RECEIVER pulls the RESOURCE from the sending server.

104.

The underlying Transport layer protocol used by SMTP is ________(a) TCP(b) UDP(c) Either TCP or UDP(d) IMAPI had been asked this question in an international level competition.Asked question is from SMTP in division Application Layer of Computer Network

Answer»

Right option is (a) TCP

To explain: TCP is a reliable PROTOCOL, and RELIABILITY is a MANDATORY requirement in e-mail transmission using SMTP.

105.

In SMTP, the command to write receiver’s mail address is written with the command _______(a) SEND TO(b) RCPT TO(c) MAIL TO(d) RCVR TOThis question was addressed to me in unit test.Question is taken from SMTP topic in portion Application Layer of Computer Network

Answer» CORRECT choice is (b) RCPT TO

For explanation: RCPT TO command is followed by the recipient’s mail address to specify where or to whom the mail is going to through the internet. If there is more than one receiver, the command is REPEATED for each address continually.
106.

Expansion of SMTP is ________(a) Simple Message Transfer Protocol(b) Simple Mail Transmission Protocol(c) Simple Message Transmission ProtocolI had been asked this question during an interview.This intriguing question comes from SMTP in portion Application Layer of Computer Network

Answer»

Correct choice is (a) SIMPLE MESSAGE Transfer PROTOCOL

To elaborate: SMTP or Simple Mail Transfer Protocol is an application layer protocol used to transport e-mails over the INTERNET. Only 7-bit ASCII codes can be sent using SMTP.

107.

If you have to send multimedia data over SMTP it has to be encoded into _______(a) Binary(b) Signal(c) ASCII(d) HashI have been asked this question during a job interview.My enquiry is from SMTP in portion Application Layer of Computer Network

Answer»

Right option is (c) ASCII

Best explanation: Since only 7-bit ASCII codes are TRANSMITTED through SMTP, it is MANDATORY to convert binary multimedia data to 7-bit ASCII before it is SENT using SMTP.

108.

When the mail server sends mail to other mail servers it becomes ____________(a) SMTP server(b) SMTP client(c) Peer(d) MasterThis question was addressed to me in homework.This is a very interesting question from SMTP in portion Application Layer of Computer Network

Answer»

Right option is (b) SMTP client

The BEST I can explain: SMTP clients are the entities that send mails to other mail servers. The SMTP servers cannot send INDEPENDENT mails to other SMTP servers as an SMTP server. There are no masters or PEERS in SMTP as it is based on the client-server architecture.

109.

The password is sent to the server using ________ command.(a) PASSWD(b) PASS(c) PASSWORD(d) PWORDThe question was posed to me in an online quiz.I want to ask this question from FTP topic in division Application Layer of Computer Network

Answer»

Right option is (b) PASS

Explanation: The PASS COMMAND, preceded by the username, completes the user’s IDENTIFICATION for access control in an FTP session. Without the valid PASSWORD, the user won’t be ABLE to initiate the FTP connection.

110.

The data transfer mode of FTP, in which all the fragmenting has to be done by TCP is ________(a) Stream mode(b) Block mode(c) Compressed mode(d) Message modeI had been asked this question in an online quiz.I'd like to ask this question from FTP in chapter Application Layer of Computer Network

Answer» RIGHT answer is (a) Stream mode

Easy explanation: Stream mode is the default mode of FTP, in which the TCP transforms/fragments the data into segments, and then after the transmission is completed, CONVERTS it back to stream of BYTES.
111.

Find the FTP reply whose message is wrongly matched.(a) 331 – Username OK, password required(b) 425 – Can’t open data connection(c) 452 – Error writing file(d) 452 – Can’t open data connectionThis question was addressed to me during an internship interview.My doubt is from FTP in division Application Layer of Computer Network

Answer»

The CORRECT option is (d) 452 – Can’t open data CONNECTION

To elaborate: The correct response CODE for the message “Can’t open data connection” is 425. Response code 452 is sent USUALLY when the connection is suddenly CLOSED.

112.

The commands, from client to server, and replies, from server to client, are sent across the control connection in ________ bit ASCII format.(a) 8(b) 7(c) 3(d) 5The question was posed to me during an internship interview.I'd like to ask this question from FTP topic in portion Application Layer of Computer Network

Answer» RIGHT choice is (b) 7

The explanation is: FTP was designed to transmit COMMANDS only in ENGLISH characters that are POSSIBLE with just 7 bits in ASCII. Even the media has to be converted to ASCII before transmission.
113.

FTP server _____________(a) Maintains state information(b) Is stateless(c) Has single TCP connection for a file transfer(d) Has UDP connection for file transferI got this question in examination.The question is from FTP topic in portion Application Layer of Computer Network

Answer»

The correct option is (a) Maintains STATE INFORMATION

Explanation: FTP server maintains state information of every control connection to KEEP track of the ACTIVE and inactive CONNECTIONS in the session. This helps the server decide which connection to terminate, in case the connection is inactive for too long.

114.

If 5 files are transferred from server A to client B in the same session. The number of TCP connections between A and B is _______(a) 5(b) 10(c) 2(d) 6This question was posed to me in examination.I'm obligated to ask this question of FTP in chapter Application Layer of Computer Network

Answer»

Correct answer is (d) 6

The explanation is: The client would first INITIATE the TCP control connection through PORT 21. Then for every file transfer, a separate connection would be MADE through port 20. Now, since we have five files to be transferred, 1 control connection + 5 data connections = 6 total TCP connections.

115.

Identify the incorrect statement regarding FTP.(a) FTP stands for File Transfer Protocol(b) FTP uses two parallel TCP connections(c) FTP sends its control information in-band(d) FTP sends exactly one file over the data connectionThe question was asked by my college professor while I was bunking the class.This intriguing question originated from FTP topic in division Application Layer of Computer Network

Answer»

Right OPTION is (c) FTP SENDS its control information in-band

To explain I WOULD say: FTP is out-of-band because the data connection is done separately through port 20 and control connection is done separately through port 21.

116.

FTP uses _________ parallel TCP connections to transfer a file.(a) 1(b) 2(c) 3(d) 4I got this question during an online exam.My question comes from FTP in chapter Application Layer of Computer Network

Answer»

The correct choice is (b) 2

To elaborate: CONTROL connection using FTP port: 21, and data connection using FTP port: 20. The FTP session is started or ended using port 21 and the actual data i.e. files are sent through port 20.

117.

FTP is built on _____ architecture.(a) Client-server(b) P2P(c) Data centric(d) Service orientedI had been asked this question in my homework.My question is taken from FTP topic in division Application Layer of Computer Network

Answer»

Right option is (a) Client-SERVER

To elaborate: An FTP connection includes a Server and a Client which WISH to share a number of DATA files. The server can transfer files with multiple CLIENTS at the same time while the client communicates with only ONE server at a time.

118.

Expansion of FTP is __________(a) Fine Transfer Protocol(b) File Transfer Protocol(c) First Transfer Protocol(d) Fast Transfer ProtocolThis question was posed to me in an interview for job.I want to ask this question from FTP topic in section Application Layer of Computer Network

Answer»

The CORRECT option is (b) File Transfer Protocol

For explanation I would say: File Transfer Protocol is an application LAYER protocol used to share “FILES” between a server and a client. The protocol uses two separate ports for data and CONTROL connections: port 20 for data and port 21 for control.

119.

In File Transfer Protocol, data transfer cannot be done in ___________(a) stream mode(b) block mode(c) compressed mode(d) message modeThe question was asked in final exam.This intriguing question comes from HTTP & FTP in section Application Layer of Computer Network

Answer»

Correct option is (d) message mode

For explanation: In Stream mode, the DATA is transferred in a CONTINUOUS stream. In BLOCK mode, data is transferred after being divided into smaller blocks. In Compressed mode, data is transferred after being compressed using some compression ALGORITHM.

120.

The File Transfer Protocol is built on ______________(a) data centric architecture(b) service oriented architecture(c) client server architecture(d) connection oriented architectureI had been asked this question during an interview for a job.My doubt is from HTTP & FTP topic in section Application Layer of Computer Network

Answer»

Right option is (C) client server architecture

Explanation: The FTP connection includes a Server and a Client which WISH to SHARE files. The server can have multiple CLIENTS at the same time while the client communicates with only ONE server at a time.

121.

In Active mode FTP, the client initiates both the control and data connections.(a) True(b) FalseI have been asked this question during an online interview.This intriguing question comes from HTTP & FTP topic in section Application Layer of Computer Network

Answer»

Right answer is (b) False

Best explanation: In PASSIVE mode of FTP, the CLIENT initiates both DATA and control connections, while in Active mode, the client initiates the control connection and then the SERVER initiates the data connection.

122.

In FTP protocol, client contacts server using ____ as the transport protocol.(a) transmission control protocol(b) user datagram protocol(c) datagram congestion control protocol(d) stream control transmission protocolThis question was addressed to me during an interview.This interesting question is from HTTP & FTP in section Application Layer of Computer Network

Answer»

The correct answer is (a) transmission control protocol

The best I can EXPLAIN: The clients USE the Transmission Control Protocol for FTP as it’s more reliable than UDP, DCCP, and SCTP, and reliability of FILE TRANSFER is required to be as high as possible for FTP.

123.

FTP server listens for connection on port number ____________(a) 20(b) 21(c) 22(d) 23The question was posed to me during an interview.This interesting question is from HTTP & FTP in section Application Layer of Computer Network

Answer» CORRECT answer is (b) 21

Explanation: Port 20 is USED for FTP data. Port 22 is used for SSH REMOTE login. Port 23 is used for TELNET.
124.

In HTTP pipelining ________________(a) multiple HTTP requests are sent on a single TCP connection without waiting for the corresponding responses(b) multiple HTTP requests can not be sent on a single TCP connection(c) multiple HTTP requests are sent in a queue on a single TCP connection(d) multiple HTTP requests are sent at random on a single TCP connectionI got this question in an online quiz.This interesting question is from HTTP & FTP topic in section Application Layer of Computer Network

Answer»

The correct answer is (a) multiple HTTP requests are SENT on a single TCP connection without WAITING for the corresponding responses

The BEST I can explain: HTTP PIPELINING helps the client make multiple requests without having to waiting for each RESPONSE, thus saving a lot of time and bandwidth for the client.

125.

HTTP client requests by establishing a __________ connection to a particular port on the server.(a) user datagram protocol(b) transmission control protocol(c) border gateway protocol(d) domain host control protocolI got this question by my college professor while I was bunking the class.This is a very interesting question from HTTP & FTP topic in portion Application Layer of Computer Network

Answer»

The CORRECT answer is (b) transmission CONTROL protocol

Explanation: HTTP clients perform requests USING a TCP connection, because the TCP connection provides a more reliable service. UDP is not a reliable protocol, border gateway protocol is used on top of TCP, while domain HOST control protocol is a NETWORK layer protocol.

126.

In the network HTTP resources are located by(a) uniform resource identifier(b) unique resource locator(c) unique resource identifier(d) union resource locatorI have been asked this question in an online quiz.The origin of the question is HTTP & FTP topic in section Application Layer of Computer Network

Answer» RIGHT option is (a) uniform RESOURCE identifier

Best explanation: The Uniform Resource Identifier is a name and locator for the resource to be LOCATED by the HTTP. The URLs and URNS are derived through the identifier.
127.

HTTP is ________ protocol.(a) application layer(b) transport layer(c) network layer(d) data link layerI have been asked this question by my college director while I was bunking the class.This intriguing question originated from HTTP & FTP in portion Application Layer of Computer Network

Answer»

The CORRECT option is (a) APPLICATION layer

To explain I would say: HTTP is an Application layer PROTOCOL used to define how MESSAGES are formatted and transmitted through the WORLD Wide Web.

128.

Multiple objects can be sent over a TCP connection between client and server in a persistent HTTP connection.(a) True(b) FalseThis question was posed to me during an interview.Question is taken from HTTP & FTP in chapter Application Layer of Computer Network

Answer»

The correct answer is (a) True

To explain: Persistent connections are kept ACTIVE after completing transaction so that MULTIPLE OBJECTS can be SENT over the same TCP connection.

129.

Which of the following is present in both an HTTP request line and a status line?(a) HTTP version number(b) URL(c) Method(d) None of the mentionedThis question was posed to me in exam.This key question is from HTTP in chapter Application Layer of Computer Network

Answer»

Right option is (a) HTTP version number

Explanation: STATUS line is the the start line of an HTTP response. It CONTAINS the INFORMATION such as the PROTOCOL version, a status text, status code.

130.

The conditional GET mechanism(a) Imposes conditions on the objects to be requested(b) Limits the number of response from a server(c) Helps to keep a cache upto date(d) None of the mentionedI got this question during an interview.This is a very interesting question from HTTP in chapter Application Layer of Computer Network

Answer»

Right choice is (c) HELPS to KEEP a cache upto date

To explain I would say: The HTTP protocol requests the SERVER of the website its trying to access so that it can store its files, images etc. in cache memory. This request of asking the server for a document considering a specific PARAMETER is called conditional GET Request.

131.

Which of the following is not correct?(a) Web cache doesnt has its own disk space(b) Web cache can act both like server and client(c) Web cache might reduce the response time(d) Web cache contains copies of recently requested objectsThe question was posed to me in exam.Question is taken from HTTP in portion Application Layer of Computer Network

Answer»

The CORRECT option is (a) Web CACHE doesnt has its own disk space

Easiest explanation: Web cache or also known as HTTP cache is a temporary storage where HTML PAGES and IMAGES are stored temporarily so that server lag could be reduced.

132.

Find the oddly matched HTTP status codes(a) 200 OK(b) 400 Bad Request(c) 301 Moved permanently(d) 304 Not FoundI have been asked this question in unit test.My question is taken from HTTP topic in portion Application Layer of Computer Network

Answer»

The correct choice is (d) 304 Not FOUND

For explanation I WOULD say: 404 Not Found.

133.

The HTTP response message leaves out the requested object when ____________ method is used(a) GET(b) POST(c) HEAD(d) PUTI had been asked this question during an interview for a job.The question is from HTTP in section Application Layer of Computer Network

Answer»

The correct choice is (c) HEAD

The explanation: HEAD METHOD is much faster than GET method. In HEAD method much SMALLER AMOUNT of data is TRANSFERRED. The HEAD method asks only for information about a document and not for the document itself.

134.

The __________ method when used in the method field, leaves entity body empty.(a) POST(b) SEND(c) GET(d) PUTI have been asked this question in a national level competition.My enquiry is from HTTP in portion Application Layer of Computer Network

Answer»

The correct choice is (c) GET

Easiest explanation: There are two methods which HELP to REQUEST a response from a server. Those are GET and POST. In GET METHOD, the client requests data from server. In POST method the client submits data to be processed to the server.

135.

The values GET, POST, HEAD etc are specified in ____________ of HTTP message(a) Request line(b) Header line(c) Status line(d) Entity bodyThis question was posed to me in examination.This intriguing question originated from HTTP in division Application Layer of Computer Network

Answer»

Right answer is (a) REQUEST line

Explanation: It is specified in the method FIELD of request line in the HTTP request MESSAGE.

136.

The first line of HTTP request message is called _____________(a) Request line(b) Header line(c) Status line(d) Entity lineThis question was posed to me during an online exam.My enquiry is from HTTP in section Application Layer of Computer Network

Answer»

Right option is (a) REQUEST line

Easy EXPLANATION: The line followed by request line are called header lines and STATUS line is the INITIAL PART of response message.

137.

In the process of fetching a web page from a server the HTTP request/response takes __________ RTTs.(a) 2(b) 1(c) 4(d) 3The question was posed to me in an interview for internship.This is a very interesting question from HTTP in portion Application Layer of Computer Network

Answer»

The correct answer is (b) 1

For explanation I WOULD say: By DEFAULT the http CONNECTION will be persistent connection. Hence it will take only 1 RTT to fetch a webpage from a SERVER.

138.

The HTTP request message is sent in _________ part of three-way handshake.(a) First(b) Second(c) Third(d) FourthI have been asked this question in an internship interview.This interesting question is from HTTP topic in division Application Layer of Computer Network

Answer»

Correct CHOICE is (c) THIRD

Explanation: In first step CLIENT sends a SEGMENT to establish a connection with the server. In the second the step the client waits for the acknowledgement to be received from the server. After receiving the acknowledgement, the client sends actual data in the third step.

139.

The time taken by a packet to travel from client to server and then back to the client is called __________(a) STT(b) RTT(c) PTT(d) JTTI had been asked this question during an online interview.The query is from HTTP in division Application Layer of Computer Network

Answer»

Right answer is (B) RTT

The BEST I can explain: RTT STANDS for round-trip TIME.

140.

The default connection type used by HTTP is _________(a) Persistent(b) Non-persistent(c) Can be either persistent or non-persistent depending on connection request(d) None of the mentionedThe question was posed to me in an internship interview.My query is from HTTP in section Application Layer of Computer Network

Answer»

Correct OPTION is (a) Persistent

To explain: By default the HTTP connection is ISSUED with persistent connection. In persistent connection server leaves connection open after sending response. As little as one RTT (Time for a small packet to travel from client to server and back) is REQUIRED for all referenced objects.

141.

The number of objects in a Web page which consists of 4 jpeg images and HTML text is ________(a) 4(b) 1(c) 5(d) 7This question was posed to me in a national level competition.The query is from HTTP topic in chapter Application Layer of Computer Network

Answer»

The CORRECT CHOICE is (c) 5

To explain I WOULD say: 4 jpeg images + 1 base HTML file.

142.

When displaying a web page, the application layer uses the _____________(a) HTTP protocol(b) FTP protocol(c) SMTP protocol(d) TCP protocolI got this question in homework.Enquiry is from Application Layer in section Application Layer of Computer Network

Answer»

The correct option is (a) HTTP PROTOCOL

The best explanation: HTTP is abbreviation for hypertext TRANSFER protocol. It is the FOUNDATION of data communication for world WIDE web. This protocol DECIDES how the message is formatted and transmitted etc.

143.

Which one of the following is not correct?(a) Application layer protocols are used by both source and destination devices during a communication session(b) HTTP is a session layer protocol(c) TCP is an application layer protocol(d) All of the mentionedThis question was addressed to me during an online exam.This is a very interesting question from Application Layer in chapter Application Layer of Computer Network

Answer» CORRECT option is (d) All of the mentioned

Best explanation: HTTP is an APPLICATION LAYER protocol. Whereas TCP is a transport layer protocol.
144.

Which protocol is a signaling communication protocol used for controlling multimedia communication sessions?(a) session initiation protocol(b) session modelling protocol(c) session maintenance protocol(d) resource reservation protocolI have been asked this question in quiz.Enquiry is from Application Layer topic in chapter Application Layer of Computer Network

Answer»

The correct ANSWER is (a) session initiation protocol

To explain I WOULD say: SIP is a signaling protocol in which its function includes INITIATING, maintaining and terminating real TIME sessions. SIP is used for signaling and controlling multimedia sessions.

145.

Which one of the following is not an application layer protocol?(a) media gateway protocol(b) dynamic host configuration protocol(c) resource reservation protocol(d) session initiation protocolI got this question in semester exam.Question is from Application Layer in chapter Application Layer of Computer Network

Answer»

Right OPTION is (c) resource reservation PROTOCOL

The explanation is: Resource reservation protocol is USED in transport layer. It is designed to reserve resources across a NETWORK for quality of service using the integrated SERVICES model.

146.

Which one of the following is an internet standard protocol for managing devices on IP network?(a) dynamic host configuration protocol(b) simple network management protocol(c) internet message access protocol(d) media gateway protocolThis question was posed to me by my college professor while I was bunking the class.I'm obligated to ask this question of Application Layer topic in chapter Application Layer of Computer Network

Answer»

The correct answer is (b) SIMPLE network management protocol

The EXPLANATION: SNMP is a set of protocols for network management and monitoring. This protocol is included in the application layer. SNMP uses 7 protocol DATA units.

147.

The ASCII encoding of binary data is called(a) base 64 encoding(b) base 32 encoding(c) base 16 encoding(d) base 8 encodingThe question was posed to me in class test.This intriguing question comes from Application Layer in portion Application Layer of Computer Network

Answer» CORRECT option is (a) base 64 encoding

Explanation: Base64 is used commonly in a number of applications including email via MIME, and storing complex data in XML. PROBLEM with sending normal binary data to a network is that BITS can be misinterpreted by underlying protocols, produce incorrect data at receiving NODE and that is why we use this code.
148.

Which one of the following protocol delivers/stores mail to reciever server?(a) simple mail transfer protocol(b) post office protocol(c) internet mail access protocol(d) hypertext transfer protocolThis question was posed to me in an internship interview.My doubt is from Application Layer in portion Application Layer of Computer Network

Answer»

The CORRECT choice is (a) simple mail transfer protocol

The BEST EXPLANATION: SMTP, ABBREVIATION for Simple Mail Transfer Protocol is an application layer protocol. A client who wishes to send a mail creates a TCP connection to the SMTP server and then sends the mail across the connection.

149.

Application layer protocol defines ____________(a) types of messages exchanged(b) message format, syntax and semantics(c) rules for when and how processes send and respond to messages(d) all of the mentionedThis question was addressed to me by my college professor while I was bunking the class.My query is from Application Layer in section Application Layer of Computer Network

Answer»

Correct answer is (d) all of the mentioned

Explanation: Application layer deals with the user interface, what message is to be sent or the message FORMAT, syntax and SEMANTICS. A user has access to application layer for SENDING and receiving messages.

150.

Which one of the following allows a user at one site to establish a connection to another site and then pass keystrokes from local host to remote host?(a) HTTP(b) FTP(c) Telnet(d) TCPThe question was posed to me during an interview.I'm obligated to ask this question of Application Layer topic in division Application Layer of Computer Network

Answer»

The correct answer is (c) TELNET

The best explanation: Telnet is used for accessing remote computers. Using telnet a user can access computer remotely. With Telnet, you can log on as a REGULAR user with whatever privileges you may have been granted to the SPECIFIC application and DATA on the computer.