JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech III WEB TECHNOLOGIES Previous Question Paper (July - 2023 - R16)
Note: i) Question paper consists of Part A, Part B. ii) Part A is compulsory, which carries 25 marks. In Part A, Answer all questions. iii) In Part B, Answer any one question from each unit. Each question carries 10 marks and may have a, b as sub questions.
Part A
What is the use of default parameter in PHP?
Answer
Default parameters in PHP allow a function to use a predefined value if no argument is passed for that parameter during the function call. This makes functions more flexible and prevents errors when optional arguments are omitted.
Write a PHP code to illustrate returning values.
Answer
The following code demonstrates returning a value from a function:
function add($a, $b) {
return $a + $b;
}
$result = add(5, 10);
echo $result; // Outputs 15Define XML. What are the advantages of XML?
Answer
Sign in to view the complete answer paper.
Illustrate the XML attributes and values in brief.
Answer
Sign in to view the complete answer paper.
State the differences between GET and POST methods.
Answer
Sign in to view the complete answer paper.
List out the classes and interfaces in javax.servlet.* package.
Answer
Sign in to view the complete answer paper.
What are JSP Implicit Objects?
Answer
Sign in to view the complete answer paper.
Mention the JDBC drivers and explain JDBC-ODBC bridge driver.
Answer
Sign in to view the complete answer paper.
List the Java script event handlers.
Answer
Sign in to view the complete answer paper.
Explain the features of Java script.
Answer
Sign in to view the complete answer paper.
Part B
Develop a Program to create simple Login and Logout example using sessions in PHP.
Answer
Sign in to view the complete answer paper.
Illustrate the use of break and continue in PHP.
Answer
Sign in to view the complete answer paper.
Develop a program to illustrate the parameter passing techniques in PHP.
Answer
Sign in to view the complete answer paper.
Explain the use of binary files in PHP. Give an example.
Answer
Sign in to view the complete answer paper.
Explain different data types in XML schema.
Answer
Sign in to view the complete answer paper.
Define SAX. How SAX parses the XML file? Explain.
Answer
Sign in to view the complete answer paper.
Determine the procedure for validating XML documents against a schema.
Answer
Sign in to view the complete answer paper.
Explain about various types of XML parsers.
Answer
Sign in to view the complete answer paper.
Illustrate the handling of http request and responses with an example.
Answer
Sign in to view the complete answer paper.
Examine the life cycle of a Java servlet and write a simple servlet that reads three parameters from the form data.
Answer
Sign in to view the complete answer paper.
Explain Session tracking in Servlets with a suitable example.
Answer
Sign in to view the complete answer paper.
Compare server side programming and client side programming. Give an example.
Answer
Sign in to view the complete answer paper.
Illustrate with example, database connection through JSP.
Answer
Sign in to view the complete answer paper.
Develop a JSP program to display current date and time and explain java code snippets.
Answer
Sign in to view the complete answer paper.
How to create and make use of beans in JSP pages? Demonstrate with example.
Answer
Sign in to view the complete answer paper.
Demonstrate a program to create and read the cookie for the given cookie name as “rollno” and its value as “123”.
Answer
Sign in to view the complete answer paper.
Differentiate between Client side Java Script and Server side Java Script.
Answer
Sign in to view the complete answer paper.
Demonstrate a JavaScript to display whether given number is a prime or not.
Answer
Sign in to view the complete answer paper.
Implement a Java script to sort the given elements in ascending order.
Answer
Sign in to view the complete answer paper.
Explain the two ways of calling a function with examples.
Answer
Sign in to view the complete answer paper.