Code360 powered by Coding Ninjas X Naukri.com. Code360 powered by Coding Ninjas X Naukri.com
Table of contents
1.
Introduction
2.
Gate Questions on Web Technologies
3.
Frequently Asked Questions 
4.
Conclusion
Last Updated: Mar 27, 2024

Gate Questions on Web Technologies

Master Python: Predicting weather forecasts
Speaker
Ashwin Goyal
Product Manager @

Introduction

Web technology consists of the various tools and techniques utilized in communication between different devices. Web technology is classified into the following sections:
 

World Wide Web: WWW is an interconnected system of web pages accessible through the Internet. It is based on several different technologies like the Hypertext Transfer Protocol (HTTP) web browsers and Hypertext Markup Language (HTML).
 

Web Browser: web browser is application software used to explore the World Wide Web. It provides an interface between the client and the server. 

Web Server: A web server is a program that processes the users' network requests and serves them with files that create web pages. This exchange takes place using HTTP.
 

Web Pages: A web page is a digital document linked to the World Wide Web, and anyone connected to the internet can view it with a web browser.
 

Web Development: Web development refers to building, creating, and maintaining websites. It includes web design, web programming, web publishing, and database management.

 

In this article, we will learn some of the gate questions on web technologies that have been asked in previous years.

Gate Questions on Web Technologies

Let us discuss some of the gate questions on web technologies 

1. In a web server, there are ten WebPages stored with the URLs of the form "http://www.yourname.com/var.html". Here, var is a distinct number from 1 to 10 for each web page. The client will store the Webpage with var=1 (like W1) in the local machine, edit it, and test it. The rest of the WebPages remains on the webserver. W1 will contain several relative URLs of the form "var.html" referring to the other WebPages. 
 

Select the statement that needs to be added in W1 so that the relative URLs in W1 refer to the proper WebPages on the webserver?

(a) <base href: "http://www.yourname.com/", range:"...var.html">

(b) <a href: "http://www.yourname.com/"> 

(c) <base href: "http://www.yourname.com/">

(d) <a href: "http://www.yourname.com/", href:"...var.html">

 

Solution: <base href: "http://www.yourname.com/">

Explanation:

The tag must specify the base URL/target for all the relative URLs in a document. At maximum, there can be one element in a document, and it must be inside the element.
 

2. Which one of the statements given below is incorrect about HTTP cookies?

(a) A cookie is a piece of code that has the potential to compromise the security of an internet user.

(b) A cookie has an expiry date and time.

(c) A cookie gains entry to the user's work area through an HTTP header.

(d) Cookies can be used to track a user's browsing pattern at a particular site.

 

Solution: A cookie is a piece of code that has the potential to compromise the security of an Internet user

Explanation: Cookies are not a piece of code. They are just strings normally in the form of key-value pairs.

 

3. Which of the statements is/are false?

i. XML supports user-defined tags while HTMLuses pre-defined tags.

ii. XML tags need not be closed, while HTML tags must be closed.

iii. XML overcomes the limitations in HTML to support a structured way of organizing content.

iv. XML specification is not case sensitive, while HTML specification is case sensitive.
 

(a) ii only

(b) iii only

(c) ii and iv only

(d) iii and iv only


Solution: ii and iv only

Explanation:

  • XML supports user-defined tags, whereas HTML has only pre-defined tags 
  • XML tags must be closedwhereas HTML tags may not be closed.
  • XML supports a structured way of organizing content.
  • XML is case sensitive, while HTML is not case sensitive. 

 

4. In which one of the pairs of protocols given below can both protocols use multiple TCP connections between the same server and the client 

(a) HTTP, FTP

(b) HTTP, TELNET

(c) FTP, SMTP

(d) HTTP, SMTP

 

Solution: HTTP, FTP

Explanation:

HTTP and FTP can use multiple TCP connections between the same client and the server. FTP uses two TCP connections (one for data and another for control information). 

 

5. Identify the false statement.

(a) HTTP runs over TCP.

(b) HTTP can be used to test the validity of a hypertext link.

(c) HTTP describes the structure of web pages.

(d) HTTP allows information to be stored in a URL.
 

Solution: HTTP describes the structure of web pages.

Explanation:

HTTP is an application layer protocol used to access web pages. HTML describes the structure of web pages.
 

6. Which is not a client-server application?

(a) Internet chat

(b) E-mail

(c) Web browsing 

(d) Ping


Solution: Ping

Explanation:

Ping is not a client-server application. It is a computer network administration software utility that tests the reachability of a host on an Internet Protocol(IP) network and measures the round-trip time for messages sent from the originating host to a destination computer and back. 


7. Which of the following options indicates a correct association of the commands: PROMPT, HEAD, and RCPT with protocols where these are used?

(a) HTTP, SMTP, FTP

(b) FTP, HTTP, SMTP

(c) HTTP, FTP, SMTP

(d) SMTP, HTTP, FTP


Solution: FTP, HTTP, SMTP

Explanation:

The HEAD command is used in HTTP for obtaining meta-information about the entity implied by request without transferring the entity-body itself. This command is often used for testing hypertext links for validity, accessibility, and recent modification.


RCTP command is used in the SMTP(Simple Mail Transfer Protocol) protocol to tell the mail server who the message's recipient is.

 

PROMPT command in FTP is used to turn off prompting for individual files when using the mput or mget commands.

 

8. An HTML form is to be designed to enable the purchase of office stationery. The required items are selected (checked), credit card details are to be entered, and the submit button is pressed. 


Which one of the given options would suit sending the data to the server. Assume that security is handled in a transparent way to the form design.

(a) Only GET

(b) Only POST

(c) Either GET or POST

(d) Neither GET nor POST
 

Solution: Only POST
Explanation:

HTTP enables communications between servers and clients. It works as a request-response protocol between a server and clients. Two commonly used HTTP methods for a request-response between a client and server are GET and POST. GET requests must never be used when dealing with highly sensitive data (like passwords, credit card details, or debit card details) because they will display all such information in the address bar. The GET requests can also be cached and remain in the browser history.

 

9. Which of the following statements are true?

i. Telnet, HTTP, and FTP are application layer protocols.

ii. Enterprise Java Beans(EJB) components can be deployed in a Java2 Enterprise Edition(J2EE) application server.

iii. If two languages conform to the CLS(Common Language Specification) of the Microsoft.NET Framework, then a class defined in any one of them may be inherited in the other.

 

(a) ii and iii only

(b) i and ii only

(c) i and iii only

(d) i, ii, and iii

 

Solution: i and ii only

Explanation: 

Telnet is an underlying TCP/IP protocol for accessing remote computers. FTP transfers computer files from one host to another host over a TCP-based network, such as the internet. HTTP is used for accessing web pages. Telnet, HTTP, and FTP are application layer protocols. 


EJB is a development architecture that can highly scalable and robust enterprise-level applications on J2EE compliant Application Server such as Web Logic, JBOSS, etc.


If two languages conform to the CLS of the Microsoft.NET framework, then there are compliance rules used for inheritance.

 

10. Match the entries in the columns given below:

(I) Proxy Server (A) Firewall
(II) Kazaa, DC++  (B) Caching
(III) Slip (C) P2P
(IV) DNS (D) PPP

(a) I-a, II-d, III-c, IV-b

(b) I-a, II-c, III-d, IV-b

(c) I-b, II-d, III-c, IV-a

(d) I-b, II-c, III-d, IV-a

 

Solution: I-a, II-c, III-d, IV-b

Explanation: 

  • Proxy Server and Firewall can be combined.
  • Kazaa and DC++ are P2P applications.
  • Slip is a predecessor of PPP(Point-to-Point Protocol).
  • DNS allows caching of entries at the local server. DNS server or client locally stores the DNS records and re-uses them in the future. 

 


These were some of the important gate questions on web technologies. Feel free to check out the gate questions in Binary Search TreeBinary TreesStack, etc.

Refer to know about : Lifi technology

Get the tech career you deserve, faster!
Connect with our expert counsellors to understand how to hack your way to success
User rating 4.7/5
1:1 doubt support
95% placement record
Akash Pal
Senior Software Engineer
326% Hike After Job Bootcamp
Himanshu Gusain
Programmer Analyst
32 LPA After Job Bootcamp
After Job
Bootcamp

Frequently Asked Questions 

  1. What is the difference between a website and a web server?
    A website is a collection of web pages, while a web server is a software that responds to the request for web resources.
     
  2. Mention the difference between HTTPS and HTTP.
    The difference between HTTPS and HTTP is that HTTPS uses TLS (SSL) to encrypt normal HTTP requests and responses. This makes HTTPS more secure than HTTP. In short, HTTPS is HTTP with encryption. 
     
  3. Name some of the HTTP methods.
    Some HTTP methods are POST, GET, PUT, DELETE, PATCH, etc. The most common HTTP methods are POST and GET.
     
  4. Mention the difference between the DELETE and PATCH HTTP methods?
    The DELETE method deletes the specified resource, whereas the PATCH method applies partial modifications to a resource.
     
  5. Mention the key difference between HTML and XML.
    Both HTML and XML are used to create web applications and web pages. The key difference between HTML and XML is that HTML displays the data and describes the structure of the webpage, whereas XML stores and transfers data.

Conclusion

In this article, we have extensively discussed the gate questions on web technologies that have been asked in previous years.
 

We hope that this blog has helped you enhance your knowledge regarding the gate questions on web technologies, and if you would like to learn more, check out our article How to prepare in the Last 10 days to score high in GATE and Gate Syllabus CSE. Do upvote our blog to help other ninjas grow. Happy Coding!

Next article
Software Engineering
Live masterclass