Week 1 GS Correct
Week 1 GS Correct
Week 1
Distance (in m)
=⇒ T ime =
Speed (in m/s)
So,
1.25 × 107 m
time =
2 × 108 m/s
=⇒ time = 62.5 ms
4. Which of the following is/are true for a web browser? [MSQ : 1 point]
√
A web browser is an application program to display web documents.
√
A web browser sends an HTTP request and receives an HTTP response.
A web browser is installed in a web server machine and hosts websites.
A web browser is a web app.
Solution:
Option 1 : A web browser acts as a web client to send a request to the web server
to fetch web pages.
Option 2 : Both the server and the client communicate with each other using HTTP
protocol.
Page 2
Option 3 : A web browser is an application installed in the client’s system that is
used to send HTTP requests.
Option 4 : A web browser is an application software used to access web applications.
5. Identify the correct order of the tasks that takes place when we request for
http://myserver.com/index.html. [MCQ : 3 points]
1. The web browser sends an HTTP request to the server, requesting a copy of in-
dex.html.
2. The web browser assembles the response and displays it.
3. The server responds either with the requested resource or an error code.
4. The web browser connects to the DNS server to get the server IP address for
myserver.com
1-4-3-2
1-3-4-2
√
4-1-3-2
4-3-1-2
Solution:
As the first step, the web browser connects to a DNS server to get the IP address
which is hosting “myserver.com”.
Then, the web browser sends an HTTP request, requesting a base html file (in-
dex.html) to the server.
Then, the server processes the request and returns the requested resource if found,
else sends an error code.
Then, the web browser displays the response sent by the server.
Solution: View in the “MVC” is part of application to which user interacts directly.
So, it can be used to display data and user can submit data using form which is an
example of a view.
Page 3
7. Let A be a website that receives 10,000 requests in a second. If each request has to be
sent a response of size 150kB, what should be the minimum bandwidth (approximately)
of the server serving A? [MCQ : 3 points]
4 Gbps
6 Gbps
√
12 Gbps
20 Gbps
Solution:
• Internet Protocol (IP) is a set of rules that specifies one way to deliver data
over the network.
Page 4
√
https://onlinedegree.iitm.ac.in/academics.html is a url.
https://onlinedegree is a root domain.
Solution: https://onlinedegree.iitm.ac.in/academics.html
• HTTPS is a protocol.
• https://onlinedegree.iitm.ac.in/academics.html is a url.
• onlinedegree is a subdomain.
10. Which of the following is/are valid IPv4 address(es)? [MSQ : 2 points]
√
192.168.64.34
192.168.256.1
√
34.39.43.202
34.239.314.206
Solution: An IPv4 address has the format x.x.x.x, where x is called an octet and
must be a decimal value between 0 and 255. Octets are separated by periods. An
IPv4 address must contain three periods and four octets.
192.168.64.34 and 34.39.43.202 are valid IPv4 addresses.
192.168.256.1 and 34.239.314.206 are invalid IPv4 addresses.
Page 5