JNTU

JNTU B.Tech IV PHP PROGRAMMING Previous Question Paper (July - 2023 - R16)

B.Tech | IV | II | R16 | July - 2023

Answer PaperPaper Code: 138GQMaximum Marks: 75Time: 3 Hours

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

1a

Write a PHP program to print 1 to 10 numbers using while loop.

2 marks

Answer

The following PHP code initializes a variable to 1 and uses a while loop to print each number until it reaches 10:

<?php
$i = 1;
while ($i <= 10) {
    echo $i . " ";
    $i++;
}
?>
1b

Give a brief note on Apache Web server.

3 marks

Answer

The Apache HTTP Server is a widely used, open-source, cross-platform web server software developed by the Apache Software Foundation. It is a fundamental component of the LAMP (Linux, Apache, MySQL, PHP) stack, which is the standard environment for hosting dynamic web applications.

Key characteristics include:

  • Modular Architecture: Apache allows users to extend its functionality by loading or unloading modules, such as mod_rewrite for URL manipulation or mod_php for processing PHP scripts.
  • Reliability and Security: It is highly stable and supports robust security features, including SSL/TLS encryption for secure data transmission via HTTPS.
  • Configuration: It uses a centralized configuration file, typically named httpd.conf or .htaccess files, allowing developers to manage directory-level settings and access controls efficiently.
1c

How to concatenate arrays in PHP?

2 marks

Answer

Sign in to view the complete answer paper.

1d

What is the function date () in PHP?

3 marks

Answer

Sign in to view the complete answer paper.

1e

Define pattern.

2 marks

Answer

Sign in to view the complete answer paper.

1f

How to use match function in PHP?

3 marks

Answer

Sign in to view the complete answer paper.

1g

Define exception.

2 marks

Answer

Sign in to view the complete answer paper.

1h

Write a short note on GD library.

3 marks

Answer

Sign in to view the complete answer paper.

1i

Define database.

2 marks

Answer

Sign in to view the complete answer paper.

1j

Explain any three features of MySQL database.

3 marks

Answer

Sign in to view the complete answer paper.

Part B

210 marks
a

Explain about comparison and string operators in PHP with suitable examples.

7 marks

Answer

Sign in to view the complete answer paper.

b

Write a brief history on PHP.

3 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Explain about argument function and Variable function.

5 marks

Answer

Sign in to view the complete answer paper.

b

How to create a PHP pages? Explain with an example.

5 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

What are string functions in PHP? Explain in detail.

5 marks

Answer

Sign in to view the complete answer paper.

b

How do you declare a function without arguments? Explain.

5 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Explain in detail about Parameterized function with an example program.

7 marks

Answer

Sign in to view the complete answer paper.

b

When to define static functions? Explain.

3 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

How to give input value in PHP? Explain with example.

5 marks

Answer

Sign in to view the complete answer paper.

b

How do you read and write file in PHP? Give example.

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

Explain how to create a folder in PHP.

6 marks

Answer

Sign in to view the complete answer paper.

b

What are the advantages and define regular expression?

4 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

How do you handle exceptions in PHP? Explain with an example.

6 marks

Answer

Sign in to view the complete answer paper.

b

Discuss in detail about the parse errors.

4 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

How to destroy cookies in PHP? Give example.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a program to upload and display an image using PHP.

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

How can you connect to database in PHP? Give example program.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the commands: CREATE, UPDATE, INSERT, DELETE, and SELECT.

5 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Explain the procedure to insert records into table in PHP with an example.

6 marks

Answer

Sign in to view the complete answer paper.

b

Explain the process of running PHP script on a webserver.

4 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of PHP PROGRAMMING from JNTU for B.Tech ECE IV II, July - 2023, R16.

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

Other papers in PHP PROGRAMMING

Loading Question Papers

Fetching data from database...