0% found this document useful (0 votes)
59 views2 pages

2022 Summer Question Paper (Msbte Study Resources)

The document contains instructions and questions for a PHP exam. It includes questions about PHP features like arrays, variables, forms, functions, classes, cookies, sessions, and MySQL. Students are asked to write PHP code to demonstrate concepts like arrays, forms, functions, classes, database connectivity, and string functions.

Uploaded by

anisnk2003
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views2 pages

2022 Summer Question Paper (Msbte Study Resources)

The document contains instructions and questions for a PHP exam. It includes questions about PHP features like arrays, variables, forms, functions, classes, cookies, sessions, and MySQL. Students are asked to write PHP code to demonstrate concepts like arrays, forms, functions, classes, database connectivity, and string functions.

Uploaded by

anisnk2003
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

21222

22619
3 Hours / 70 Marks Seat No.
15 minutes extra for each hour

Instructions : (1) All Questions are compulsory.


(2) Illustrate your answers with neat sketches wherever necessary.
(3) Figures to the right indicate full marks.
(4) Assume suitable data, if necessary.

Marks

1. Attempt any FIVE : 2  5 = 10

(a) Describe advantage of PHP.

(b) What is array ? How to store data in array ?

(c) List types of inheritance.

(d) How can we destroy cookies ?

(e) List any four data types in MySQL.

(f) Write syntax of PHP.

(g) How to create session variable in PHP ?

2. Attempt any THREE : 4  3 = 12

(a) Write down rules for declaring PHP variable.

(b) Write a program to create associative array in PHP.

(c) Define Introspection and explain it with suitable example.

(d) Write difference between get( ) & post( ) method of form (Any four points).

[1 of 2] P.T.O.
22619 [2 of 2]
3. Attempt any THREE : 4  3 = 12
(a) Define function. How to define user defined function in PHP ? Give example.
(b) Explain method overloading with example.
(c) Define session & cookie. Explain use of session start.
(d) Explain delete operation of PHP on table data.

4. Attempt any THREE : 4  3 = 12


(a) Write PHP script to sort any five numbers using array function.
(b) Write PHP program for cloning of an object.
(c) Create customer form like customer name, address, mobile no, date of birth
using different form of input elements & display user inserted values in new
PHP form.
(d) Inserting and retrieving the query result operations.
(e) How do you validate user inputs in PHP ?

5. Attempt any TWO : 6  2 = 12


(a) Explain different loops in PHP with example.
(b) How do you connect MySQL database with PHP.
(c) Create a class as “Percentage” with two properties length & width. Calculate
area of rectangle for two objects.

6. Attempt any TWO : 6  2 = 12


(a) Write a PHP program to demonstrate use of cookies.
(b) Explain any four string functions in PHP with example.
(c) (i) What is inheritance ?
(ii) Write update operation on table data.

_______________

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy