JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD MCA 2020 WEB TECHNOLOGIES Previous Question Paper (October/ November - 2020 - R17)

MCA | 2020 | IV | R17 | October/ November - 2020

Answer PaperPaper Code: 844AAMaximum Marks: 75Time: 2 Hours

Answer any five questions

All questions carry equal marks

Main

115 marks
a

Briefly describe various aspects of PHP’s array-manipulation capabilities.

7 marks

Answer

PHP provides a robust set of array-manipulation functions that treat arrays as versatile data structures, supporting both indexed and associative storage. Key aspects include:

  • Array Creation and Initialization: Arrays are created using the array() construct or the short [] syntax, supporting mixed data types.
  • Sorting Functions: PHP offers specialized sorting such as sort(), rsort() for indexed arrays, and asort(), ksort() for associative arrays to maintain key-value relationships.
  • Stack and Queue Operations: Arrays can function as stacks or queues using functions like array_push(), array_pop(), array_shift(), and array_unshift().
  • Searching and Filtering: Functions like in_array() allow for existence checks, while array_filter() and array_map() provide functional programming capabilities to process or transform array elements based on callback logic.
  • Merging and Slicing: Arrays can be combined using array_merge() or partitioned using array_slice() and array_splice() for dynamic data management.
b

How to read data from a web form using PHP script.

8 marks

Answer

Reading data from a web form in PHP involves accessing superglobal arrays that capture input based on the HTTP method specified in the form tag.

  • Form Definition: The HTML form must specify the method attribute as either GET or POST.
  • Accessing GET Data: When method='GET' is used, form data is appended to the URL and accessed via the $_GET associative array.
  • Accessing POST Data: When method='POST' is used, data is sent in the request body, which is more secure for sensitive information, and accessed via the $_POST superglobal.
  • Implementation Example: To retrieve a field named 'username', use the syntax
    $user = $_POST['username'];
  • Validation: It is essential to use functions like isset() or empty() to verify that the form data exists before processing it to prevent undefined index errors.
215 marks
a

Write a PHP script to connect and view information in the MySQL database.

7 marks

Answer

Sign in to view the complete answer paper.

b

Write down the features of PHP.

8 marks

Answer

Sign in to view the complete answer paper.

315 marks
a

Explain the difference between XML Schemas and DTDs.

7 marks

Answer

Sign in to view the complete answer paper.

b

How to use SAX parser in JAVA? Illustrate.

8 marks

Answer

Sign in to view the complete answer paper.

4

Describe the XML DOM Node Tree with an illustrative example.

15 marks

Answer

Sign in to view the complete answer paper.

5

Elaborate the HTTP request and response mechanism using Servlets.

15 marks

Answer

Sign in to view the complete answer paper.

6

Describe in detail how can a JSP be connected to a database using JDBC.

15 marks

Answer

Sign in to view the complete answer paper.

7

Explain the working principle of JSP Containers.

15 marks

Answer

Sign in to view the complete answer paper.

815 marks
a

Write a Java script to validate user credentials. Use regular expressions for denoting credentials.

7 marks

Answer

Sign in to view the complete answer paper.

b

What are the applications of Java script?

8 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the solved question paper with answers of WEB TECHNOLOGIES from JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for MCA 2020 IV, October/ November - 2020, R17.

For the question paper without answers, switch to the Question Paper tab.

Other papers in WEB TECHNOLOGIES

Loading Question Papers

Fetching data from database...