JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD MCA 2018 WEB TECHNOLOGIES Previous Question Paper (January - 2018 - R13)
Note: This question paper contains two parts A and B. Part A is compulsory which carries 20 marks. Answer all questions in Part A. Part B consists of 5 Units. Answer any one full question from each unit. Each question carries 8 marks and may have a, b, c as sub questions.
Part A
Answer all questions. Each question carries 4 marks.
How to define a constant variable in PHP? Give an example.
Answer
In PHP, a constant variable is defined using the define() function. Unlike standard variables, constants do not require a dollar sign ($) prefix, are global in scope, and their values cannot be changed or undefined once set. By convention, constant names are written in uppercase letters.
The syntax is define(name, value, case_insensitive), where the third parameter is an optional boolean that defaults to false.
Example:
<?php
define("SITE_NAME", "My Web Portal");
echo SITE_NAME;
?>Derive naming rules in XML.
Answer
XML element and attribute names must adhere to specific naming conventions to ensure they are well-formed and parsable. The fundamental rules are as follows:
- Names must start with a letter or an underscore (_). They cannot start with a number or a punctuation character.
- After the first character, names can contain letters, digits, hyphens (-), underscores (_), and periods (.).
- Names cannot contain spaces.
- Names cannot start with the string 'xml', 'XML', 'Xml', or any other case variation, as these are reserved for XML standardization purposes.
- Names are case-sensitive; for example, <Name> and <name> are treated as distinct elements.
- While names can contain colons (:), they should be avoided unless used specifically for namespaces, as the colon is reserved for that purpose.
What does Servlet config interface do?
Answer
Sign in to view the complete answer paper.
Define JSP. Mention its use.
Answer
Sign in to view the complete answer paper.
How does one access cookie in a java script?
Answer
Sign in to view the complete answer paper.
Part B
Answer any one full question from each unit.
Write a PHP script for uploading a file to the server and display the uploaded files details.
Answer
Sign in to view the complete answer paper.
List and explain the control structures used in PHP.
Answer
Sign in to view the complete answer paper.
Explain different operators used in PHP.
Answer
Sign in to view the complete answer paper.
Give the difference between SAX & DOM parsers?
Answer
Sign in to view the complete answer paper.
Explain the valid and well formedness of XML document.
Answer
Sign in to view the complete answer paper.
What is XML? Explain its basic structure elements.
Answer
Sign in to view the complete answer paper.
Write a XML program to illustrate XSLT.
Answer
Sign in to view the complete answer paper.
What is servlet, discuss about advantages of Servlets over CGI.
Answer
Sign in to view the complete answer paper.
Explain HTTP Servlet response and HTTP Servlet request.
Answer
Sign in to view the complete answer paper.
Explain about class Cookie and HTTP Servlet.
Answer
Sign in to view the complete answer paper.
Write about Servlet parameters and Initialization of parameters.
Answer
Sign in to view the complete answer paper.
Is it possible for one JSP to extend another java class? If yes how?
Answer
Sign in to view the complete answer paper.
Explain about lifecycle of JSP.
Answer
Sign in to view the complete answer paper.
Explain different types of scripting elements in JSP
Answer
Sign in to view the complete answer paper.
What is Bean? Discuss how to create beans in JSP.
Answer
Sign in to view the complete answer paper.
Define client side programming. Explain briefly about AJAX.
Answer
Sign in to view the complete answer paper.
Explain various operators and data types available in java script.
Answer
Sign in to view the complete answer paper.
Explain about object, methods and events in Java Scripts.
Answer
Sign in to view the complete answer paper.