0% found this document useful (0 votes)
22 views4 pages

IT602 Web Technology Exam 2023

Uploaded by

aniket29042003
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views4 pages

IT602 Web Technology Exam 2023

Uploaded by

aniket29042003
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

NARULA INSTITUTE OF TECHNOLOGY

An Autonomous Institute under MAKAUT

[Link]/IT/EVEN/6TH SEM/R18/ IT602/2022-2023


YEAR: 2023
WEB TECHNOLOGY
IT602
TIME ALLOTTED: 3 HOURS FULL MARKS: 70
The figures in the margin indicate full marks.
Candidates are required to give their answers in their own words as far as practicable
GROUP – A
(Multiple Choice Type Questions)
1. Answer any ten from the following, choosing the correct alternative of each question: 10×1=10
SL Question Marks Co Blooms
Taxonomy
Level
(i) [Link] application runs on __________. 1 1 1
a)Multi thread
b) Single thread
c) All of these
d) None of these

(ii) Which is the method to create new session in servlet 1 1 1


a) [Link]()
b) [Link]()
c) [Link]()
d)[Link]()

(iii) Who is making the Web standards? 1 1 1


a) Mozilla
b) Microsoft
c) The World Wide Web Consortium
d) NVDIA

(iv) In a Javascript Application what function can be used to send 1 3 1


messages to users requesting for an text input?
a) Display()
b) Alert()
c) GetOutput()
d) Prompt()

(v) Which HTML attribute used to define inline styles? 1 1 1


a) class
b) Style
c) styles
d) Font

Page 1 of 4
Even semester theory examination 2023 under autonomy, 15.06.2023
NARULA INSTITUTE OF TECHNOLOGY
An Autonomous Institute under MAKAUT

(vi) Which of the following is true about Web services? 1 2 1


a) Web services are open standard (XML, SOAP, HTTP etc.)
based Web applications
b) Web services interact with other web applications for the
purpose of exchanging data
c) Web Services can convert your existing applications into
Web applications.
d) All of the above

(vii) CGI is a 1 3 1
a) Client side programming.
b) Server side programming.
c) Both side programming.
d) None of these

(viii) What XML stands for? 1 1 1


a) Extra Marked Language
b) Extensible Markup Language
c) Extensible Marked Literal
d) Extra Markup Language

(ix) Applet is used in ______________ web page 1 3 1


a) Dynamic webpage
b) Active
c) Both dynamic and static
d) Static

(x) Which of these is a client server application? 1 3 1


a) Web browsing
b) E-mail
c) Internet Chat
d) All of the above

(xi) Choose the correct HTML tag for the smallest heading 1 2 1
a) <h6>
b) <heading small>
c) <small heading>
d) <h1>

(xii) What does error 404 or Not Found error while accessing a 1 2 1
URL mean?
a) The server could not find the requested URL
b) Requested HTML file is not available
Page 2 of 4
Even semester theory examination 2023 under autonomy, 15.06.2023
NARULA INSTITUTE OF TECHNOLOGY
An Autonomous Institute under MAKAUT

c) The path to the interpreter of the script is not valid


d) The requested HTML file does not have sufficient
permissions

GROUP – B
(Short Answer Type Questions)
(Answer any three of the following) 3 x 5 = 15

SL Question Marks Co Blooms Taxonomy


Level
2. What is JDBC? What are the role of Statement object 5 2 1,2
and Result set in JDBC frame.

3. Explain RMI architecture with suitable diagram. 5 3 2

4. What is HTTP? How does it work? Give appropriate 5 2 2


example.

5. (i) What is the use of AJAX 2 1 2

(ii) Write a AJAX code that will read data from a file 3 2 3

6. What do you mean by SQL injection? How it can be 5 1 2


overcome?
GROUP – C
(Long Answer Type Questions)
(Answer any three of the following) 3 x 15 = 45
SL Question Marks Co Blooms Taxonomy
Level
7. (i) What is Servlet? Briefly explain life cycle of Servlet? 10 1 1,2

(ii) Discuss about MVC. 5 3 2

8. (i) Define web technology? Draw Web architecture and 8 2 2


explain.

(ii) What are HTML tags. How can you insert rows and 7 3 3
column in HTML.

9. (i) Compare doGet() and doPost(). Write a Servlet that will 10 1 2


remember the user name and password using cookies.

(ii) What is the application of call back function, discuss 5 3 2


with an example.
Page 3 of 4
Even semester theory examination 2023 under autonomy, 15.06.2023
NARULA INSTITUTE OF TECHNOLOGY
An Autonomous Institute under MAKAUT

10 (i) What is CGI? Write a CGI program. 5 3 2


.
(ii) Explain Java Applet life cycle. 5 1 2

(iii) Explain DNS and HTTP 5 2 2

11 Write short notes on any three of the following: 5*3


.
(i) Mongodb 5 2 2
(ii) XML 5 2 2
(iii) Node JS 5 2 1
(iv) SAX and DOM 5 3 1
(v) VoIP 5 2 1

Page 4 of 4
Even semester theory examination 2023 under autonomy, 15.06.2023

Common questions

Powered by AI

HTTP (Hypertext Transfer Protocol) is the protocol used for transferring data over the web. Its significance lies in enabling the communication between web clients and servers. The process involves a client sending an HTTP request to a server, which then processes this request and responds with an HTTP response. The communication is stateless, meaning each transaction is independent. HTTP is foundational for web browsing, facilitating the fetching and rendering of web pages.

MVC (Model-View-Controller) architecture is pivotal in web development because it separates the application into three interconnected components. The Model encapsulates the core data and business logic, the View is the user interface, and the Controller manages user input and interfaces with the Model. This separation of concerns facilitates modularity, making development, debugging, and scaling easier. It also allows multiple views for the same model, improving flexibility in user interface design.

The Servlet lifecycle consists of three main phases: initialization, request handling, and destruction. It begins with the servlet being loaded into memory by the web container (initialization), followed by handling requests via the service method, and ends with the servlet being destroyed when the server needs to free up resources (destruction). This lifecycle is essential for web applications as it provides a standardized way of managing servlets, ensuring efficient resource management and dynamic response generation for web clients.

RMI (Remote Method Invocation) architecture in Java allows an object residing in one Java virtual machine to invoke methods on an object in another Java virtual machine. It facilitates remote communication by using a client-server model where the client side gets a reference to the remote object and invokes methods as if they were local. The communication takes place over Java Remote Method Protocol (JRMP)

To prevent SQL injection, web applications can implement several security measures: using prepared statements and parameterized queries to separate SQL code from data input, employing stored procedures which are usually pre-compiled and thus immune to injection, validating and sanitizing input to allow only expected types and formats, and employing ORM frameworks that abstract database interactions, reducing the likelihood of injection. Additionally, regular security testing and updates help identify and fix vulnerabilities.

Web services facilitate interoperability by adhering to open standards such as XML, SOAP, and HTTP, allowing different platforms and technologies to communicate over the Internet. XML enables data structuring in a way that can be understood across programs and languages, SOAP provides a protocol for message exchanges, and HTTP serves as a transport protocol. This combination allows web services to enable applications built on different platforms to exchange data seamlessly, making them widely applicable in distributed systems.

In JDBC, the Statement object is used to execute SQL queries, which do not require parameters, on the database. It serves as a vehicle for sending SQL statements to the database. The ResultSet, on the other hand, represents the result set of a query. It maintains a cursor pointing to the current row in the result set and allows sequential access of data retrieved from the database.

AJAX enhances user experience by allowing web pages to update asynchronously, without reloading the entire page. This leads to smoother performance and faster interactions as only parts of the page that need updating get refreshed. A basic example of AJAX code for reading data from a file involves using the XMLHttpRequest object to request data from the server, handling server responses, and updating the webpage content dynamically without full reloads.

SAX (Simple API for XML) and DOM (Document Object Model) are two different approaches for processing XML data. SAX is an event-driven, serial access protocol suitable for large XML documents as it doesn't load the entire document into memory. It reads XML tags, attributes, and values one by one, making it faster and less memory-intensive. DOM, however, is an object-based protocol that loads the entire XML document into memory and enables traversal and manipulation of the data, making it more suitable for smaller documents where the entire structure needs manipulation. SAX is preferred in performance-critical applications, while DOM is chosen for ease of use when working with small to medium-sized documents.

Both doGet() and doPost() are used to handle HTTP requests in servlets. doGet() is used for requests that produce data retrieval operations and appends form data to the URL; it is idempotent and can be cached. In contrast, doPost() handles requests that change state or have side effects on the server and send form data in the body of the request; it is not idempotent. Cookies can be utilized in both methods to store session data on the client side. For example, in a login service, cookies can remember usernames and passwords to maintain user sessions across different requests.

You might also like