0% found this document useful (0 votes)
31 views1 page

3 Hours / 70 Marks: Seat No

php diploma question paper
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)
31 views1 page

3 Hours / 70 Marks: Seat No

php diploma question paper
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/ 1

22619 [2 of 2]

21222
22619 3. Attempt any THREE :
(a)
4  3 = 12
Define function. How to define user defined function in PHP ? Give example.
(b) Explain method overloading with example.
3 Hours / 70 Marks Seat No. (c) Define session & cookie. Explain use of session start.
15 minutes extra for each hour
(d) Explain delete operation of PHP on table data.
Instructions : (1) All Questions are compulsory.
(2) Illustrate your answers with neat sketches wherever necessary. 4. Attempt any THREE : 4  3 = 12
(3) Figures to the right indicate full marks.
(a) Write PHP script to sort any five numbers using array function.
(4) Assume suitable data, if necessary.
(b) Write PHP program for cloning of an object.
(c) Create customer form like customer name, address, mobile no, date of birth
Marks using different form of input elements & display user inserted values in new
PHP form.
1. Attempt any FIVE : 2  5 = 10
(d) Inserting and retrieving the query result operations.
(a) Describe advantage of PHP.
(e) How do you validate user inputs in PHP ?
(b) What is array ? How to store data in array ?

(c) List types of inheritance.


5. Attempt any TWO : 6  2 = 12
(d) How can we destroy cookies ? (a) Explain different loops in PHP with example.
(e) List any four data types in MySQL. (b) How do you connect MySQL database with PHP.

(f) Write syntax of PHP. (c) Create a class as “Percentage” with two properties length & width. Calculate
area of rectangle for two objects.
(g) How to create session variable in PHP ?

6. Attempt any TWO : 6  2 = 12


2. Attempt any THREE : 4  3 = 12 (a) Write a PHP program to demonstrate use of cookies.
(a) Write down rules for declaring PHP variable. (b) Explain any four string functions in PHP with example.

(b) Write a program to create associative array in PHP. (c) (i) What is inheritance ?
(ii) Write update operation on table data.
(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.

You might also like