Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Application Layer MCQs

Total questions: 99

Worksheet time: 52mins

Name
Class
Date
1.

The application layer is where network applications and their application-layer protocols reside.

a)

True

b)

False

2.

Which of these is NOT a common application-layer protocol?

a)

HTTP

b)

IP

c)

SMTP

d)

DNS

3.

In the client-server architecture, the client is typically the one that:

a)

Is always-on

b)

Initiates contact with the server

c)

Has a static IP address

d)

Is located in a data center

4.

A characteristic of a P2P architecture is:

a)

It relies on a powerful central server

b)

Peers are intermittently connected and can change IP addresses

c)

It is easier to manage than client-server

d)

It does not exhibit self-scalability

5.

A process is:

a)

The physical machine

b)

A program running on a device

c)

The network connection

d)

The operating system

6.

The interface between the application process and the transport layer protocol is called a:

a)

Port

b)

Socket

c)

Protocol

d)

Router

7.

To identify a specific process on a specific host, one needs:

a)

The host's IP address

b)

The port number

c)

Both the IP address and port number

d)

The MAC address

8.

The well-known port number for HTTP is:

a)

25

b)

53

c)

80

d)

110

9.

An application-layer protocol defines all of the following EXCEPT:

a)

The types of messages exchanged

b)

The syntax of message fields

c)

The semantics of the information in messages

d)

The voltage levels on the physical wire

10.

A protocol like HTTP, defined in an RFC and usable by anyone, is a(n) ________ protocol.

a)

Open

b)

Proprietary

c)

Secret

d)

Outdated

11.

For a real-time audio application, which transport service requirement is most critical?

a)

100% reliable data transfer

b)

High throughput

c)

Timing (low delay)

d)

Security

12.

For a file transfer application, which transport service requirement is most critical?

a)

Timing

b)

High throughput

c)

Loss tolerance

d)

Low security

13.

TCP provides which of the following services?

a)

Reliable data transfer, flow control, congestion control

b)

Unreliable data transfer, timing guarantees

c)

Minimum bandwidth guarantee

d)

Unordered data delivery

14.

UDP provides which of the following services?

a)

Reliable data transfer

b)

Connection-oriented service

c)

Unreliable data transfer

d)

Congestion control

15.

An application might choose UDP over TCP to:

a)

Get guaranteed delivery

b)

Avoid connection establishment delays

c)

Have built-in congestion control

d)

Ensure in-order delivery

16.

TLS provides encryption at which level?

a)

Between the application and transport layers

b)

At the network layer

c)

At the physical layer

d)

Only for email

17.

A web page is typically composed of:

a)

A single HTML file

b)

A base HTML file and several referenced objects

c)

Only text

d)

Only images

18.

In the context of the web, the client is usually the:

a)

Web server

b)

Browser

c)

DNS server

d)

Mail server

19.

The protocol used to transfer web pages is:

a)

FTP

b)

SMTP

c)

HTTP

d)

DNS

20.

HTTP uses ________ as its underlying transport protocol.

a)

UDP

b)

TCP

c)

ICMP

d)

IP

21.

HTTP is stateless, meaning:

a)

It cannot maintain a TCP connection

b)

The server maintains no information about past client requests

c)

It only works within one country

d)

It uses stateless packet switching

22.

Non-persistent HTTP requires ________ TCP connection(s) per object.

a)

One

b)

Two

c)

Multiple

d)

Zero

23.

The main disadvantage of non-persistent HTTP is:

a)

It is less secure

b)

It requires more RTTs and causes more OS overhead

c)

It cannot transfer images

d)

It uses UDP

24.

Persistent HTTP:

a)

Sends one object and closes the connection

b)

Sends multiple objects over a single TCP connection

c)

Is an older, obsolete standard

d)

Is only used for email

25.

The HTTP request message method used to retrieve information is:

a)

POST

b)

PUT

c)

GET

d)

HEAD

26.

The HTTP request message method used to send data to a server (e.g., form data) is:

a)

POST

b)

PUT

c)

GET

d)

HEAD

27.

The HTTP response status code 200 means:

a)

Request succeeded

b)

Moved permanently

c)

Not found

d)

Server error

28.

The HTTP response status code 404 means:

a)

Request succeeded

b)

Moved permanently

c)

Not found

d)

Server error

29.

Cookies are used primarily to:

a)

Store web pages on the user's disk

b)

Introduce security vulnerabilities

c)

Maintain state (user-specific information) on the client side

d)

Speed up TCP connections

30.

A "third-party cookie" is most often used for:

a)

User authentication on the main site

b)

Tracking users across different sites

c)

Storing shopping cart contents

d)

Encrypting user data

31.

A web cache (proxy server) serves what primary purpose?

a)

To act as a firewall

b)

To reduce response time and reduce traffic on an access link

c)

To increase the load on origin servers

d)

To generate cookies

32.

The Conditional GET HTTP mechanism is used to:

a)

Force a download

b)

Check if a cached object is still valid

c)

Upload a new file

d)

Delete a cookie

33.

HTTP/2 improves performance over HTTP/1.1 by:

a)

Switching to UDP

b)

Allowing multiple requests and responses to be interleaved in a single connection

c)

Removing all headers

d)

Making connections non-persistent

34.

A problem with HTTP/2 is that packet loss in the underlying TCP connection can:

a)

Be completely avoided

b)

Stall all object transmissions

c)

Only affect one object

d)

Automatically switch the connection to UDP

35.

The protocol used to send mail from one server to another is:

a)

HTTP

b)

FTP

c)

SMTP

d)

POP3

36.

The three major components of the email system are:

a)

User agents, mail servers, SMTP

b)

Browsers, clients, servers

c)

TCP, IP, HTTP

d)

POP, IMAP, HTTP

37.

SMTP is a ________ protocol, meaning the sending server pushes the message to the receiving server.

a)

Pull

b)

Push

c)

Peer-to-peer

d)

Store-and-forward

38.

A key difference between SMTP and HTTP is that SMTP requires message bodies to be in:

a)

7-bit ASCII

b)

Binary format

c)

HTML

d)

Encrypted format

39.

Which mail access protocol allows users to manage folders on the server and keep messages on the server?

a)

SMTP

b)

HTTP

c)

IMAP

d)

FTP

40.

The primary purpose of the Domain Name System (DNS) is to:

a)

Route packets through the Internet

b)

Translate hostnames to IP addresses

c)

Send email messages

d)

Provide web hosting

41.

The DNS system is:

a)

A single centralized database

b)

A distributed and hierarchical database

c)

A flat naming structure

d)

Owned by a single company

42.

The servers at the top of the DNS hierarchy are called:

a)

.com servers

b)

Root name servers

c)

Authoritative name servers

d)

Local name servers

43.

The DNS server for a specific organization (e.g., umass.edu) that holds its definitive records is its:

a)

Root server

b)

TLD server

c)

Authoritative server

d)

Local server

44.

The DNS record type "A" holds:

a)

An alias name

b)

An IP address

c)

A mail server name

d)

A name server name

45.

The DNS record type "MX" holds:

a)

An alias name

b)

An IP address

c)

A mail server name

d)

A name server name

46.

DNS caching is important because it:

a)

Makes the Internet more secure

b)

Improves response time and reduces traffic

c)

Makes records permanent

d)

Is required for email to work

47.

A common threat to DNS is:

a)

Packet sniffing

b)

DDoS attacks on root/TLD servers

c)

HTTP GET floods

d)

Email spam

48.

In a P2P file distribution system, scalability is achieved because:

a)

There is a powerful central server

b)

Each new peer adds service capacity

c)

Peers have static IP addresses

d)

The government regulates it

49.

In BitTorrent, the "tit-for-tat" strategy encourages:

a)

Free-riding (downloading without uploading)

b)

Peers to upload to those who upload to them

c)

Random selection of peers

d)

Using a central tracker for all transfers

50.

In BitTorrent, a peer requesting chunks will typically ask for the ________ chunks first.

a)

Largest

b)

Smallest

c)

Rarest

d)

Most common

51.

Adaptive video streaming techniques like DASH allow the client to:

4 lines
52.

Adaptive video streaming techniques like DASH allow the client to:

a)

Control the server's encoding rate

b)

Dynamically request different quality chunks based on current bandwidth

c)

Broadcast the video to other users

d)

Edit the video content

53.

A Content Distribution Network (CDN) manages scalability by:

a)

Using a single, mega-server

b)

Storing copies of content at geographically distributed sites

c)

Slowing down all user connections

d)

Using only P2P technology

54.

The CDN strategy of placing many servers deep within access networks is called:

a)

Bring home

b)

Enter deep

c)

Cluster core

d)

Distribute wide

55.

A socket is an interface between:

a)

Two different hosts

b)

The application process and the transport layer

c)

The network layer and the link layer

d)

The CPU and the RAM

56.

For a simple request-reply application that can tolerate some loss, a developer would likely use:

a)

TCP

b)

UDP

c)

HTTP

d)

SMTP

57.

In TCP socket programming, the server executes ________ to wait for a client's connection setup request.

a)

connect()

b)

bind() and listen()

c)

accept()

d)

sendto()

58.

In UDP socket programming, the sender must explicitly pack the ________ into each datagram.

a)

Destination's MAC address

b)

Destination's IP address and port number

c)

Source's port number only

d)

Encryption key

59.

The transport-layer protocol used by HTTP/3 is:

a)

TCP

b)

UDP

c)

SCTP

d)

TLS

60.

QUIC is designed to improve performance by:

a)

Reducing connection establishment time and avoiding TCP's HOL blocking

b)

Using more complex packet headers

c)

Eliminating the need for encryption

d)

Working only on wired networks

61.

The 'always-on' host in the client-server architecture is the:

a)

Client

b)

Server

c)

Peer

d)

Router

62.

In the P2P architecture, a 'peer' is:

a)

A dedicated, always-on server

b)

An intermittently connected end system

c)

A network router

d)

A DNS server

63.

The combination of an IP address and a port number is called a:

a)

Socket address

b)

MAC address

c)

Protocol number

d)

Checksum

64.

The well-known port number for the SMTP email protocol is:

a)

25

b)

53

c)

80

d)

110

65.

An application-layer protocol that is not defined in an RFC and is controlled by a company is a ________ protocol.

a)

Open

b)

Proprietary

c)

Standard

d)

Secure

66.

For a streaming video application, the most important service requirement is likely:

a)

100% reliability

b)

High throughput

c)

Low delay

d)

Strong security

67.

TCP does NOT provide:

a)

Reliable data transfer

b)

Flow control

c)

Delay guarantees

d)

Congestion control

68.

A benefit of using UDP is that it:

a)

Provides congestion control

b)

Has no connection establishment delay

c)

Guarantees delivery

d)

Reorders packets correctly

69.

The primary role of TLS is to provide:

a)

Faster data transfer

b)

Encryption, data integrity, and endpoint authentication

c)

Routing of packets

d)

Conversion of hostnames to IP addresses

70.

The first part of a URL (e.g., http://) specifies the:

a)

Hostname

b)

Protocol

c)

Path name

d)

Port number

71.

In the HTTP protocol, the entity that responds to requests is the:

a)

Client

b)

Server

c)

DNS

d)

Router

72.

The fundamental transport protocol for HTTP is chosen because it provides:

a)

Low overhead and simplicity

b)

Reliability

c)

Timing guarantees

d)

Broadcast capabilities

73.

The stateless nature of HTTP simplifies server design because:

a)

It makes connections faster

b)

The server does not need to track client state across requests

c)

It improves security

d)

It allows the use of UDP

74.

The main problem with non-persistent HTTP's use of multiple connections is:

a)

It is less secure

b)

It requires more RTTs and has higher OS overhead

c)

It cannot display images

d)

It uses too much bandwidth

75.

Persistent HTTP can improve performance by:

a)

Sending all objects in a single, giant message

b)

Sending multiple objects over a single TCP connection

c)

Using compression on all headers

d)

Eliminating the need for DNS

76.

The HTTP method that requests headers only (no body) is:

a)

GET

b)

POST

c)

HEAD

d)

PUT

77.

An HTTP response status code in the 400s generally indicates:

a)

A server error

b)

A client error

c)

Success

d)

Redirection

78.

The component of a cookie that is used to identify the user is stored:

a)

Only on the user's host

b)

Only on the web server

c)

On the user's host and passed back to the server in HTTP messages

d)

In the DNS system

79.

A web cache satisfies a client request without involving the origin server if:

a)

The object is not popular

b)

The object is in the cache and is fresh

c)

The client is using UDP

d)

The origin server is down

80.

The If-Modified-Since: header is part of a:

a)

Conditional GET request

b)

POST request

c)

DNS query

d)

SMTP handshake

81.

HTTP/2 addresses the problem of Head-of-Line (HOL) blocking in HTTP/1.1 by:

a)

Using multiple parallel TCP connections

b)

Interleaving the transmission of multiple objects on a single connection

c)

Switching to UDP

d)

Removing the need for headers

82.

The protocol responsible for transferring email from the sender's mail server to the recipient's mail server is:

a)

POP3

b)

IMAP

c)

SMTP

d)

HTTP

83.

The user agent is the:

a)

Mail server

b)

Email client software

c)

SMTP protocol

d)

Network router

84.

A key difference between SMTP and HTTP is that SMTP:

a)

Uses push instead of pull

b)

Is stateless

c)

Uses persistent connections

d)

Is based on UDP

85.

The protocol that allows a user to retrieve and manage email stored on a server is:

a)

SMTP

b)

HTTP

c)

FTP

d)

IMAP

86.

The distributed database that translates human-readable hostnames to IP addresses is:

a)

HTTP

b)

DNS

c)

SMTP

d)

BitTorrent

87.

The hierarchical structure of DNS helps with:

a)

Speed of light limitations

b)

Scalability and decentralized management

c)

Encryption of queries

d)

Guaranteeing delivery of packets

88.

The DNS server that your host directly contacts is your:

a)

Root server

b)

TLD server

c)

Authoritative server

d)

Local DNS server

89.

A DNS ________ record returns the IP address for a hostname.

a)

A

b)

NS

c)

MX

d)

CNAME

90.

The fact that DNS has more reads than writes makes it ideal for:

a)

Caching

b)

Encryption

c)

Video streaming

d)

Connection management

91.

A P2P network is self-scalable because:

a)

Servers are very powerful

b)

Each peer adds resources to the system

c)

It uses a central database

d)

It is mandated by Internet standards

92.

In BitTorrent, a peer that has the entire file is called a:

a)

Leecher

b)

Seeder

c)

Tracker

d)

Client

93.

DASH allows the ________ to decide the encoding rate of the video to request.

a)

Server

b)

Client

c)

Network router

d)

CDN operator

94.

The main goal of a CDN is to:

a)

Create content

b)

Bring content closer to users

c)

Replace ISPs

d)

Manage email servers

95.

In socket programming, the bind() operation associates a socket with a:

a)

Process ID

b)

Local port number (and IP address)

c)

Remote hostname

d)

Encryption key

96.

A key difference between TCP and UDP sockets is that TCP sockets are:

a)

Connection-oriented

b)

Unreliable

c)

Faster for simple queries

d)

Not addressable

97.

HTTP/3 uses QUIC, which is implemented over ________ to avoid OS and middlebox issues with new transport protocols.

a)

TCP

b)

UDP

c)

IP

d)

TLS

98.

QUIC combines the connection establishment with ________ establishment to reduce RTTs.

a)

DNS

b)

Security (TLS)

c)

Routing

d)

Congestion control

99.

The concept of having multiple logical streams within a single QUIC connection helps to avoid:

a)

Packet loss

b)

Head-of-Line (HOL) blocking at the transport layer

c)

DNS lookups

d)

Encryption overhead