Application Layer

Question 1
The protocol data unit (PDU) for the application layer in the Internet stack is
Cross
Segment
Cross
Datagram
Tick
Message
Cross
Frame


Question 1-Explanation: 
The Protocol Data Unit  is the unit of communication at a particular layer.
 The Layer 1 (Physical Layer) PDU is the bit or, more generally, symbol 
 The Layer 2 (Data Link Layer) PDU is the frame.
 The Layer 3 (Network Layer) PDU is the packet.
 The Layer 4 (Transport Layer) PDU is the segment
              for TCP or the datagram for UDP.
 The Layer 5 (Application Layer) PDU is the data or message.
Question 2
Consider different activities related to email:
m1: Send an email from a mail client to a mail server
m2: Download an email from mailbox server to a mail client
m3: Checking email in a web browser
Which is the application level protocol used in each activity?
Cross
m1: HTTP m2: SMTP m3: POP
Cross
m1: SMTP m2: FTP m3: HTTP
Tick
m1: SMTP m2: POP m3: HTTP
Cross
m1: POP m2: SMTP m3: IMAP


Question 2-Explanation: 
Simple Mail Transfer Protocol (SMTP) is typically used by user clients for sending mails. Post Office Protocol (POP) is used by clients for receiving mails. Checking mails in web browser is a simple HTTP process. Option (C) is correct.
Question 3
What is the maximum size of data that the application layer can pass on to the TCP layer below?
Tick
A
Cross
B
Cross
C
Cross
D


Question 3-Explanation: 
The default TCP Maximum Segment Size is 536. Where a host wishes to set the maximum segment size to a value other than the default, the maximum segment size is specified as a TCP option, initially in the TCP SYN packet during the TCP handshake. Because the maximum segment size parameter is controlled by a TCP option, a host can change the value in any later segment.
Question 4
Identify the correct order in which the following actions take place in an interaction between a web browser and a web server.
  1. The web browser requests a webpage using HTTP.
  2. The web browser establishes a TCP connection with the web server.
  3. The web server sends the requested webpage using HTTP.
  4. The web browser resolves the domain name using DNS.
Tick
4,2,1,3
Cross
1,2,3,4
Cross
4,1,2,3
Cross
2,4,1,3


Question 4-Explanation: 
The web browser first need to figure out IP address of site from url using DNS, then establishes a TCP connection, typically at port 80. Once the TCP connection is established, the browser sends a HTTP request using GET. Finally web server responds with HTTP response.
Question 5
A graphical HTML browser resident at a network client machine Q accesses a static HTML webpage from a HTTP server S. The static HTML page has exactly one static embedded image which is also at S. Assuming no caching, which one of the following is correct about the HTML webpage loading (including the embedded image)?
Cross
Q needs to send at least 2 HTTP requests to S, each necessarily in a separate TCP connection to server S
Tick
Q needs to send at least 2 HTTP requests to S, but a single TCP connection to server S is sufficient
Cross
A single HTTP request from Q to S is sufficient, and a single TCP connection between Q and S is necessary for this
Cross
A single HTTP request from Q to S is sufficient, and this is possible without any TCP connection between Q and S


Question 5-Explanation: 
Whenever a browser opens a webpage, it makes a separate request for each object of page like image, css, javascript, etc. However if multiple resources are served from same server, then one TCP connect is sufficient.
Question 6
In one of the pairs of protocols given below, both the protocols can use multiple TCP connections between the same client and the server. Which one is that?
Tick
HTTP, FTP
Cross
HTTP, TELNET
Cross
FTP, SMTP
Cross
HTTP, SMTP


Question 6-Explanation: 
HTTP may use different TCP connection for different objects of a webpage if non-persistent connections are used. FTP uses two TCP connections, one for data and another control. TELNET and FTP can only use ONE connection at a time.
Question 7
Which one of the following statements is NOT correct about HTTP cookies?
Tick
A cookies is a piece of code that has the potential to compromise the security of an Internet user
Cross
A cookie gains entry to the user’s work area through an HTTP header
Cross
A cookie has an expiry date and time
Cross
Cookies can be used to track the browsing pattern of a user at a particular site


Question 7-Explanation: 
Cookies are not piece of code, they are just strings typically in the form of key value pairs.
Question 8

Consider the following statements:
I. telnet, ftp and http are application layer protocols.
II. EJB (Enterprise Java Beans) components can be deployed in a J2EE (Java2 Enterprise Edition) application server. 
III. If two languages conform to the Common Language Specification (CLS) of the Microsoft.NET framework, then a class defined in any one of them may be inherited in the other.
Which statements are true?

Tick

l and II only

Cross

II and III only

Cross

l and III only

Cross

I, II and III



Question 8-Explanation: 

 

Hence, option A is correct 

Question 9
Which of the following is/are example(s) of stateful application layer protocols?
(i)  HTTP
(ii) FTP
(iii) TCP
(iv) POP3 
Cross
(i) and (ii) only
Cross
(ii) and (iii) only
Tick
(ii) and (iv) only
Cross
(iv) only


Question 9-Explanation: 
In computing, a stateless protocol is a communications protocol that treats each request as an independent transaction that is unrelated to any previous request so that the communication consists of independent pairs of request and response. Examples of stateless protocols (IP) and (HTTP) Source: https://en.wikipedia.org/wiki/Stateless_protocol TCP is stateful as it maintains connection information across multiple transfers, but TCP is not an application layer protocol. Of the given protocols, only FTP and POP3 are stateful application layer protocols.  
Question 10
An application layer is an abstraction layer that specifies the shared communications protocols and interface methods used by hosts in a communications network. Consider the following statements regarding various application layer protocols: (S1) : BOOTP is a Host initialization protocol which is implemented using the Transmission Control Protocol (TCP) as transport protocol. (S2) : Domain Name System (DNS) is Networking support protocol which uses User Data Protocol (UDP) as transport protocol. (S3) : Simple Network Management Protocol (SNMP) is a Remote host management protocol which uses Transmission Control Protocol (TCP) as transport protocol. Which of the following option is True?
Cross
Only (S1) and (S2) are not correct.
Tick
Only (S1) and (S3) are not correct.
Cross
Only (S2) and (S3) are not correct.
Cross
All statements (S1), (S2), and (S3) are correct.


Question 10-Explanation: 
(S1) : BOOTP is a Host initialization protocol which is implemented using the User Datagram Protocol (UDP) as transport protocol. (S2) : Domain Name System (DNS) is Networking support protocol which uses User Data Protocol (UDP) as transport protocol. (S3) : Simple Network Management Protocol (SNMP) is a Remote host management protocol which uses User Datagram Protocol (UDP) as transport protocol. Therefore, statement (S1) and (S3) are not correct. Option (B) is correct.
There are 18 questions to complete.

  • Last Updated : 09 Oct, 2019

Share your thoughts in the comments
Similar Reads