0% found this document useful (0 votes)
10 views12 pages

WBP Merged QP

The document outlines a structured examination format for PHP programming, consisting of multiple sections with various questions categorized by marks. It includes instructions for answering questions, such as the requirement for sketches and the prohibition of electronic devices. The questions cover a range of topics including PHP syntax, data types, database operations, and web development concepts.

Uploaded by

1234mayurk
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)
10 views12 pages

WBP Merged QP

The document outlines a structured examination format for PHP programming, consisting of multiple sections with various questions categorized by marks. It includes instructions for answering questions, such as the requirement for sketches and the prohibition of electronic devices. The questions cover a range of topics including PHP syntax, data types, database operations, and web development concepts.

Uploaded by

1234mayurk
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/ 12

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.

_______________
22232
22619
3 Hours / 70 Marks Seat No.

Instructions : (1) All Questions are compulsory.


(2) Answer each next main Question on a new page.
(3) Illustrate your answers with neat sketches wherever necessary.
(4) Figures to the right indicate full marks.
(5) Assume suitable data, if necessary.
(6) Mobile Phone, Pager and any other Electronic Communication
devices are not permissible in Examination Hall.

Marks
1. Attempt any FIVE of the following : 10
(a) State the advantages of PHP (any four).
(b) State the use of strlen() & strrev().
(c) Define introspection.
(d) Enlist the attributes of cookies.
(e) Write syntax of constructing PHP webpage with MySQL.
(f) Define GET & POST methods.
(g) State the use of “$” sign in PHP.

2. Attempt any THREE of the following : 12


(a) Write a program using do-while loop.
(b) Explain associative and multi-dimensional arrays.
(c) Define serialization and explain it with example.
(d) Describe the procedure of sending e-mail.

[1 of 2] P.T.O.
22619 [2 of 2]
3. Attempt any THREE of the following : 12
(a) Differentiate between implode and explode functions.
(b) Explain the concept of cloning of an object.
(c) Describe the procedure of validation of web page.
(d) Write update & delete operations on table data.

4. Attempt any THREE of the following : 12


(a) State user defined function and explain it with example.
(b) Describe inheritance, overloading, overriding & cloning object.
(c) Explain web server role in web development.
(d) Explain inserting & retrieving the query result operations.
(e) Create a web page using GUI components.

5. Attempt any TWO of the following : 12


(a) Implement any three data types used in PHP with illustration.
(b) Write a program to connect PHP with MySQL.
(c) Explain the concept of constructor and destructor in detail.

6. Attempt any TWO of the following : 12


(a) Describe form controls – text box, text area, radio button, check box, list &
buttons.
(b) Write a program to create PDF document in PHP.
(c) Elaborate the following :
(i) _ call ()
(ii) Mysqli _ connect ()

_____________
23124
22619
3 Hours / 70 Marks Seat No.

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.
(5) Mobile Phone, Pager and any other Electronic Communication
devices are not permissible in Examination Hall.

Marks
1. Attempt any FIVE of the following : 10
(a) List attributes of cookie.
(b) List different types of arrays.
(c) Explain cloning object.
(d) State any 2 difference between for and for each.
(e) Explain class and object creation.
(f) Explain functions. List its types.
(g) Define MySQL.

2. Attempt any THREE of the following : 12


(a) Develop a simple program for sending and receiving plain text message.
(b) Explain the use of break and continue statement.
(c) Explain constructor and destructor in PHP.
(d) Explain update and delete operations on table data.

3. Attempt any THREE of the following : 12


(a) Differentiate between session and cookies.
(b) List loop control structures. Explain any one loop control structure.

[1 of 2] P.T.O.
22619 [2 of 2]
(c) Explain the operations on string :
(i) strrev( )
(ii) strpos( )
(d) Explain the following :
(i) POD : :_construct( )
(ii) mysqli_connect( )

4. Attempt any THREE of the following : 12


(a) Develop a program to connect PHP with MySQL.
(b) Develop a PHP program for overriding.
(c) Explain procedure to create PDF in PHP. Write example.
(d) Design a web page using following form controls :
(i) Radio Button (ii) Checkbox
(e) Explain the following terms :
(i) Variables (ii) Datatypes
(iii) Constant (iv) Operators

5. Attempt any TWO of the following : 12


(a) Write a PHP program on Introspection.
(b) List string function in PHP. Explain any two.
(c) Write a PHP program to demonstrate session management.

6. Attempt any TWO of the following : 12


(a) Develop a PHP program to
(i) Enter data into database
(ii) Retrieve and present data from database
(b) Develop a PHP program to create constructor to initialize object of class.
(c) Develop a PHP program without using string functions :
(i) To calculate length of string
(ii) To count the number of words in string
_______________
23242
22619
3 Hours / 70 Marks Seat No.

Instructions : (1) All Questions are compulsory.


(2) Answer each next main Question on a new page.
(3) Illustrate your answers with neat sketches wherever necessary.
(4) Figures to the right indicate full marks.
(5) Assume suitable data, if necessary.

Marks

1. Attempt any FIVE of the following : 10

(a) List any four advantages of PHP.

(b) State the use of str-word-count along with its syntax.

(c) Define Serialization.


(d) Differentiate between Session & Cookies. (Any two points)
(e) List out the database operations.
(f) Write a program using Foreach loop.
(g) Explain in short how can we destroy cookies.

2. Attempt any THREE of the following : 12


(a) Explain different loops in PHP.
(b) Differentiate between implode & explode functions.
(c) Define Introspection and explain it with suitable example.
(d) Explain mail ( ) function in PHP with example.

[1 of 2] P.T.O.
22619 [2 of 2]
3. Attempt any THREE of the following : 12
(a) Explain Indexed & Associative arrays with suitable example.
(b) Explain constructor with example.
(c) Define session & cookie. Explain use of session start.
(d) Explain inserting and retriving the query result operations.

4. Attempt any THREE of the following : 12


(a) Write a program to create PDF document in PHP.
(b) Write a program to demonstrate concept of inheritance in PHP.
(c) Create Employee form like employee_name, Address, Mobile_No., Date of
birth, Post and Salary using different form input element and display user
inserted values in new PHP form.
(d) Write PHP program to demonstrate delete operation on table data.
(e) Explain web page validation with example.

5. Attempt any TWO of the following : 12


(a) Explain decision making statements along with their syntax in PHP.
(b) Write PHP program to demonstrate database operation using PHP and
MySQL.
(c) Explain method overriding with example.

6. Attempt any TWO of the following : 12


(a) Write a PHP program to demonstrate use of cookies.
(b) Explain the following string functions with example :
(i) Str-replace
(ii) Vcwords( )
(iii) Strlen( )
(iv) Strtoupper( )
(c) Explain interface with example.
_______________
12425
22619
3 Hours / 70 Marks Seat No.

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.
(5) Mobile Phone, Pager and any other Electronic Communication
devices are not permissible in Examination Hall.

Marks

1. Attempt any FIVE of the following : 10

(a) List advantages of PHP.

(b) Define inheritance in PHP.

(c) List any four string functions with use.

(d) State different data types in PHP.

(e) Explain array-flip( ) and explode( ) function with syntax.

(f) Define class with syntax and example.

(g) State advantages of PHP-MySQL.

2. Attempt any THREE of the following : 12

(a) Explain use of for and for each with example.

(b) Demonstrate use of_construct( ) and_destruct( ) with example.

[1 of 4] P.T.O.
22619 [2 of 4]
(c) Write a PHP program

(i) To find largest of two numbers

(ii) For connecting to MySQL server.

(d) Write a PHP program to count total number of rows in the database table.

3. Attempt any THREE of the following : 12

(a) Define cookie. Explain how to create and delete cookie.

(b) Explain bitwise operators in PHP.

(c) Write a PHP program to draw a rectangle filled with red colour.

(d) Explain following methods :

(i) MySQL_select_db( )

(ii) ImageCopyResized( )

4. Attempt any THREE of the following : 12

(a) Demonstrate the concept of overloading with example.

(b) Develop PHP program to create database and insert records in database.

(c) Explain how to implement multidimensional array in PHP.

(d) Explain print and echo statement in PHP.

(e) Create a form given below also write PHP code to find given number is odd or
even.

Fig. – 1
22619 [3 of 4]
5. Attempt any TWO of the following : 12

(a) State applications of serialization. Illustrate its use with example.

(b) Write a PHP program

(i) for sending mail

(ii) for validating name field.

(c) Display the given text “this is server side coding using PHP” in PDF format
using PHP.

6. Attempt any TWO of the following : 12

(a) Create a html form “result.html” to accept Rollno of student using submit
button. Write “result.php” code to check the result of student “pass’ or “fail”.
Create a table result_table in MySQL database “My_db” with two columns
Rollno and Status. Also write PHP code to delete a record from result_table.

(b) Explain the following function types with example :

(i) Anonymous function

(ii) Variable function

(c) Explain :

(i) _clone( )

(ii) class_exists( )

(iii) get_parent_class( )

_______________

P.T.O.
22619 [4 of 4]

You might also like