JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech III WEB TECHNOLOGIES Previous Question Paper (March - 2021 - R18)

B.Tech | III | I | R18 | March - 2021

Answer PaperPaper Code: 155DNMaximum Marks: 75Time: 3 Hours

Answer any five questions. All questions carry equal marks.

Main

115 marks
a

Explain different types of arrays used in PHP with examples.

7 marks

Answer

PHP supports three types of arrays:

  1. Indexed Arrays: Arrays with a numeric index. The index starts at 0 by default. Example: $colors = array('Red', 'Green', 'Blue');
  2. Associative Arrays: Arrays that use named keys that you assign to them. Example: $age = array('Peter' => '35', 'Ben' => '37');
  3. Multidimensional Arrays: Arrays containing one or more arrays. Example: $cars = array(array('Volvo', 22, 18), array('BMW', 15, 13));
b

Write a PHP script to read and write into a file.

8 marks

Answer

The following script demonstrates reading from and writing to a file using PHP file handling functions:

<?php
$filename = 'example.txt';

// Writing to a file
$file = fopen($filename, 'w');
fwrite($file, 'Hello, this is a test file.');
fclose($file);

// Reading from a file
if (file_exists($filename)) {
    $file = fopen($filename, 'r');
    echo fread($file, filesize($filename));
    fclose($file);
}
?>
215 marks
a

What is XML DOM? How DOM parses the XML file?

8 marks

Answer

Sign in to view the complete answer paper.

b

Explain different data types in XML schema.

7 marks

Answer

Sign in to view the complete answer paper.

315 marks
a

Demonstrate the use of cookies in servlets with an example.

7 marks

Answer

Sign in to view the complete answer paper.

b

Describe how an HTTP Servlet handles its client requests.

8 marks

Answer

Sign in to view the complete answer paper.

415 marks
a

What are JSP Code snippets? Develop a JSP program to display current date and time.

7 marks

Answer

Sign in to view the complete answer paper.

b

Discuss various implicit objects in JSP.

8 marks

Answer

Sign in to view the complete answer paper.

515 marks
a

Write a JavaScript to display whether given number is a prime or not.

7 marks

Answer

Sign in to view the complete answer paper.

b

How do you create a function using function overloading?

8 marks

Answer

Sign in to view the complete answer paper.

615 marks
a

Differentiate between for and foreach statements in PHP with examples.

7 marks

Answer

Sign in to view the complete answer paper.

b

Discuss the use of frames in creation of HTML document.

8 marks

Answer

Sign in to view the complete answer paper.

715 marks
a

Explain with suitable examples, the difference between get and post in Servlets.

7 marks

Answer

Sign in to view the complete answer paper.

b

Describe the procedure for validating XML documents against a schema.

8 marks

Answer

Sign in to view the complete answer paper.

815 marks
a

How to create a Date object using JavaScript?

7 marks

Answer

Sign in to view the complete answer paper.

b

What is CSS? Describe various methods to include CSS in webpage.

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 B.Tech CSE III I, March - 2021, R18.

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

Other papers in WEB TECHNOLOGIES

Loading Question Papers

Fetching data from database...