0% found this document useful (0 votes)
5 views3 pages

PHP Imp

The document contains a comprehensive list of questions and programming tasks related to PHP, MySQL, and web development, organized by units. Each question specifies the marks and the years it has been asked. Topics include PHP syntax, data types, loops, functions, object-oriented programming, form handling, cookies, sessions, and database operations.

Uploaded by

pranavugale31
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)
5 views3 pages

PHP Imp

The document contains a comprehensive list of questions and programming tasks related to PHP, MySQL, and web development, organized by units. Each question specifies the marks and the years it has been asked. Topics include PHP syntax, data types, loops, functions, object-oriented programming, form handling, cookies, sessions, and database operations.

Uploaded by

pranavugale31
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/ 3

Que.

Questions Year
No.
Unit 1
1. Describe advantage of PHP.2M S-22,S-23,S-24,W-24
2. Write syntax of PHP.2M S-22
3. List any four data types in MySQL.2M S-22,W-24
4. Write down rules for declaring PHP variable.4M S-22
5. Explain different loops in PHP with example.6m, S-22,s-24
List loop control structures. Explain any one loop control w-23
structure.4m
List any four data types of PHP.2m W-22,S-23
Implement any three data types used in PHP with illustration.4m
Write syntax of foreach loop.2m w-22,w-23
difference between for and for each. s-24
Example of Foreach loop w-24
Explain the use of break and continue statements.4m w-22,w-23
Describe the syntax of if-else control statement with example in w-22
PHP.
Write a PHP program to display numbers from 1-10 in a sequence w-22
using for loop.4m
State the use of “$” sign in PHP.2M S-23
Write a program using do-while loop. S-23
Explain the following terms : (i) Variables (ii) Datatypes (iii) Constant w-23
(iv) Operators.4M
Explain decision making statements along with their syntax in S-24
PHP.4M
UNIT 2
Write PHP script to sort any five numbers using array function.2m S-22
Explain any four string functions in PHP with example.6m S-22
Define Array. State its example. List different types of arrays.2m W-22,w-23
Explain functions. List its types. w-23
Explain Indexed array and associative arrays with suitable w-22,S-24
example.4m ,S-23
Explain associative and multi-dimensional arrays.4M
Explain two functions to scale the given image.4m w-22
Describe user defined function with example.4m w-22, S-23
Write a PHP program to (i) Calculate length of string (ii) Count w-22,w-23
number of words in the string.6M W-24
Write a PHP program (i) to find largest of two number.
(ii) for connecting MYSQL.

State the use of strlen() & strrev().2M S-23


Explain the operations on string : (i) strrev( ) (ii) strpos().4m w-23
State the use of str-word-count() along with its syntax.2M S-24
S-24
Explain the following string functions with example : (i) Str-replace W-24
(ii) Vcwords( ) (iii) Strlen( ) (iv) Strtoupper( )6M.
Differentiate between implode and explode functions.4M S-23,S-24,W-24
Define Array_flip() and explode() function.2m w-24
List string function in PHP. Explain any two.4m w-23
Unit 3
Write PHP program for cloning of an object.2m/4m. S-22,w-22(4m),w-23
explain cloning object.2M
Describe inheritance, overloading, overriding & cloning object.4M S-23
What is inheritance ?3m,4M S-22,W-24
State the role of constructor.2m w-22, S-23,w-23,S-24,
Explain the concept of constructor and destructor in detail.4m w-24
Develop a PHP program to create constructor to initialize object of w-23
class
Define Introspection. Explain it with suitable example.4m/2M w-22,S-23,w-23,S-24
Write a PHP program on Introspection.
syntax to create class and object in PHP.4m w-22,w-23
Define class with syntax.2M w-24
Explain class and object creation.4M
Illustrate class inheritance in PHP with example. w-22
Write a program to demonstrate concept of inheritance in PHP S-24
Define/State the use of serialization.3m w-22
Develop a PHP program for overriding. w-23
Explain method overriding with example S-24
Define serialization and explain it with example.4M S-23
Explain the concept of cloning of an object.4m S-23
Describe the procedure of validation of web page.4m S-23
Explain web page validation with example S-24
Explain interface with example.6M S-24
Unit 4
Create a class as “Percentage” with two properties length & width. S-22
Calculate area of rectangle for two objects
Create customer form like customer name, address, mobile no, date S-22
of birth using different form of input elements & display user
inserted values in new PHP form.2m
Create Employee form like employee_name, Address, Mobile_No.,
Date of birth, Post and Salary using different form input element S-24
and display user inserted values in new PHP form.4M
Write a PHP program to demonstrate use of cookies.4m S-22
State the use of Cookies2m w-22
Write a PHP program to demonstrate use of cookie.4M
Explain in short how can we destroy cookies. s-24
Write a PHP program to set and modify cookies.6M w-22
State role of GET and POST methods.2m w-22,S-23
Describe : (i) Start session (ii) Get session variables.4m w-22
State any four form controls to get user’s input in PHP.4m w-22
enlist the attributes of cookies.2M S-23,w-23
Write steps to create webpage using GUI component.4M w-22, s-23
Create a web page using GUI components.
State the query to insert data in the database.3m w-22
Describe the procedure of sending e-mail.4M S-23
evelop a simple program for sending and receiving plain text w-23
message.4m
Explain web server role in web development.4M S-23
Describe form controls – text box, text area, radio button, check box, s-23
list & buttons.4m
Differentiate between session and cookies.4m w-23,
define session & cookie. Explain use of session start. S-24
Design a web page using following form controls : (i) Radio Button (ii) w-23
Checkbox.4m
rite a PHP program to demonstrate session management.4m w-23
Explain mail ( ) function in PHP with example. S-24
Unit 5
How do you connect MySQL database with PHP.4m S-22,S-23,w-23
Write a program to connect PHP with MySQL.
Explain Inserting and retrieving the query result operations.2m/4M S-22, S-23
How do you connect MySQL database with PHP.6m S-22
Write update operation on table data.3m S-22
Explain queries to update and delete data in the database.4m w-22,w-23
Write a program to connect PHP with MySQL.4m w-22
List two database operations2m w-22,S-24
Write PHP program to demonstrate database operation using PHP S-24
and MySQL.
Write steps to create database using PHP. w-22
Write syntax of constructing PHP webpage with MySQL.2M S-23
Write update & delete operations on table data.4M S-23
Write PHP program to demonstrate delete operation on table data S-24
Develop a PHP program to (i) Enter data into database (ii) Retrieve w-23
and present data from database.4m
Explain inserting & retrieving the query result operations. W-22,S-24
Write a program to create PDF document in PHP.4m s-23
Explain procedure to create PDF in PHP. Write example. w-23,S-24
Elaborate the following : (i) _ call () (ii) Mysqli _ connect ().4m S-23
Explain the following : (i) POD : :_construct( ) (ii) mysqli_connect( ) w-23
Define MySQL.2m w-23
State advantages of PHP MYSQL .2m w-24

You might also like