Question Paper1 - INT222 Advanced Web Development
Question Paper1 - INT222 Advanced Web Development
Question Paper1 - INT222 Advanced Web Development
Read the following instructions carefully bafore attempting the question paper
1 Attempt only the
question allocated by neutral examiner out of all the glven questions, some other
question is attempted by the candidate, it shall lead to cancallation of ho oxamination.
2. Submit
the question paper along with the answer sheet to the inviglator beforo leoving the
examination halllab
3. Fil
all the details mentioned below very caroluly in the space provided.
UID: UID:
Q1 a)Include htp module to create a server application and use the fs module to duplicate
the original.bt file as the duplicate.bxt file in the server with the client(user) request from the
browser. Create a source. bxt file and add personal information (name, city, state) in the
server system for duplication.
b) Create a node js web server application with the http module to perforn the search operation
on a given set of values. Accept a series of values from the input text fields of the client page and
provide the output values as a response with the click event on a button.
https://github.com/sauravhathi/lpu-cse
Q2 a) Implement an express application to Pass 2 numbers the
the server and access those 2 numbers from the using the
url
of the client request to
params
in url
object and perform
basic arithmetic operations (+,*) in the server node.js application. Finally, add a button an
the client page and provide the output values as a response with a click event.
b) Implement a Nodejs application to create a writable stream with a new sample.bt file and
compute the prime numbers up to 100 and write the values to the sample.bt file with writable
stream. Display the message "Task Completed "at the end in the console window.
Page 1 of 2
b)Create a node.js web server application with the hHTTP module to find a
numbers up to a given number. Accept a number from the input text field ofseries
of Fibonacci
provide the outpui values as a response with the click event on a button, the client page and
Q6 a) Implement a client-server application with the express, HTTP,
to display the student (your) details in the server console and socket. io modules
after getting a request (connection)
from a client. Then Broadcast the only odd visitor count from server to all clients with the
new client connections. the
b) Create a node.js web server application with the HTTP module for sum
computing
of a given number. Accept a number from an input text field of the client page andtheprovideof digits
output value as a response with the click event on a button. the
a7 a)Create an express application to accept Student Name, Reg. no., Roll. No., Mabile No.
and Mail Id from the input text fields of a client page and perforrm a chain of validations on
the data the
in server application. Check all the fields are not enpty, minimum and maximum
a
lengths of data. Add submit button the client web page to submit the data and display
on
the warning messages ifserver
required.
b) Create a nodejs web application with the HTTP module to produce a series of
Armstrong numbers up to a given number. Accept a number from the input text fielid of the client
page and provide the output values as a response with the click event ona button.
Q8 a) Implement a client-server application with the express, HTTP, and socket.io modules
to display the student (your) details in the server console after getting a request (connection)
a
from client. Then Trigger events from the server to display a series of even numbers after
https://github.com/sauravhathi/lpu-cse
every 2 seconds on the client web page. Finally, display Thank you in the server console
with the termination of connect from the client.
b)Create a node.js web server application with the HTTP module for conversion between
Celsius and Fahrenheit. Accept temperature values from the input text fields of the client page
and provide the output values as a response with the click event on a button.
Q9a) Imnplement an express application to accept a number from the input text field of a user
web page and perform the basic arithmetic operations, increment (++), decrement ().
square, on the number inside a middleware function of server node.js application. Finally.
display the output values in the user web page as a response to the click event from the
button.
b) Create an express application for the following scenario to accept a file name from the input
text field of a user web page and transfer the requested file using download () function from the
server as a response to the button click event from the user web page. Create a text file and add
student information (Reg. No., Name, Grade) in the server system.
Q10 a)Create an express application to accept a file name from the input text field of a user
web page and transfer the requested file using sendFile() function from the server as a
response to the button click event from the user web page. Create a text file and add student
information (Reg. No., Name, Grade) in the server system.
b)Create a web server application with http module to provide the file name in the url of the lient
request from a browser. Include the url module in the server application and parse the to get ur
the file name from the client request. Access the file and display the content as a response to th
client(user) request in the browser. Create a test.bt file and add personal information (name, ro
no) in the senver system.
-
End of Question Paper -