JNTU

JNTU MCA 2022 WEB TECHNOLOGIES Previous Question Paper (March/April - 2022 - R20)

MCA | 2022 | III | R20 | March/April - 2022

Answer PaperPaper Code: 873ABMaximum Marks: 75Time: 3 Hours

Answer any five questions. All questions carry equal marks.

Main

115 marks
a

Explain the different control structures used in PHP.

7 marks

Answer

PHP provides various control structures to manage the flow of execution in a script, categorized into conditional statements and loops:

  • Conditional Statements: These allow code to execute based on specific conditions. The if statement executes code if a condition is true; if-else provides an alternative path; elseif handles multiple conditions; and switch selects one of many blocks of code to execute based on a variable's value.
  • Looping Structures: These repeat blocks of code. The while loop repeats as long as a condition is true. The do-while loop ensures the code block executes at least once before checking the condition. The for loop is used when the number of iterations is known. The foreach loop is specifically designed for iterating over arrays and objects.
  • Control Flow Modifiers: The break statement terminates a loop or switch, while continue skips the remainder of the current loop iteration and proceeds to the next one.
b

Write a PHP script for searching a website URL for a keyword or sentence.

8 marks

Answer

To search for a keyword within the content of a URL, you can use file_get_contents() to fetch the page source and strpos() to check for the existence of the keyword.

<?php
$url = "https://www.example.com";
$keyword = "search_term";

$content = @file_get_contents($url);

if ($content !== false) {
    if (strpos($content, $keyword) !== false) {
        echo "Keyword found on the page.";
    } else {
        echo "Keyword not found.";
    }
} else {
    echo "Failed to retrieve URL content.";
}
?>
215 marks
a

Explain database connectivity in PHP with reference to MYSQL.

8 marks

Answer

Sign in to view the complete answer paper.

b

Write a PHP code to open and read content of the file.

7 marks

Answer

Sign in to view the complete answer paper.

315 marks
a

Create an XML schema for employee details.

7 marks

Answer

Sign in to view the complete answer paper.

b

How to embed an image in the web page. Discuss any five attributes used in img tag.

8 marks

Answer

Sign in to view the complete answer paper.

415 marks
a

Create a Quiz form using HTML tags. The sample output is as follows HTML stands for

  • HighText Machine Language
  • HyperText and links Markup Language
  • HyperText Markup Language
  • None of these
8 marks

Answer

Sign in to view the complete answer paper.

b

What is XML Schema? State its purpose and list its advantages over DTD.

7 marks

Answer

Sign in to view the complete answer paper.

515 marks
a

Describe the servlet architecture and the interfaces invoked by the servlet container.

7 marks

Answer

Sign in to view the complete answer paper.

b

Demonstrate the use of cookies in servlets with an example.

8 marks

Answer

Sign in to view the complete answer paper.

615 marks
a

Write a servlet program to retrieve data from the database.

7 marks

Answer

Sign in to view the complete answer paper.

b

Develop a servlet that handles an HTTP GET request.

8 marks

Answer

Sign in to view the complete answer paper.

7

Explain in detail of how to use Java Beans in JSP pages with suitable example.

15 marks

Answer

Sign in to view the complete answer paper.

815 marks
a

How is Client side Java Script different from Server side Java Script?

7 marks

Answer

Sign in to view the complete answer paper.

b

Write a Java Script for sorting the elements of an array using functions?

8 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of WEB TECHNOLOGIES from JNTU for MCA 2022 III, March/April - 2022, R20.

For the solved question paper with answers, switch to the Answer Paper tab.

Other papers in WEB TECHNOLOGIES

Loading Question Papers

Fetching data from database...