0% found this document useful (0 votes)
8 views7 pages

1) Expressions and Control Statements in PHP: S22-1) S22 - 2) S22 - 3) W22 - 4) W22 - 5) S23 - 6) S23 - 7) "$" W23 - 8) S24 - 9)

The document outlines various topics related to PHP programming, including expressions, control statements, arrays, functions, object-oriented concepts, form creation and validation, and database operations. It contains a series of questions and programming tasks designed to assess knowledge and skills in these areas. The document is structured into sections with specific questions and programming assignments for each topic.

Uploaded by

gulveparag8
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)
8 views7 pages

1) Expressions and Control Statements in PHP: S22-1) S22 - 2) S22 - 3) W22 - 4) W22 - 5) S23 - 6) S23 - 7) "$" W23 - 8) S24 - 9)

The document outlines various topics related to PHP programming, including expressions, control statements, arrays, functions, object-oriented concepts, form creation and validation, and database operations. It contains a series of questions and programming tasks designed to assess knowledge and skills in these areas. The document is structured into sections with specific questions and programming assignments for each topic.

Uploaded by

gulveparag8
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/ 7

2Marks

1) Expressions and control statements in PHP


S22- 1) Describe advantage of PHP.
S22- 2) List any four data types in MySQL.
S22- 3) Write syntax of PHP.
W22- 4) List any four data types of PHP.
W22- 5) Write syntax of for each loop
S23- 6) State the advantages of PHP (any four).
S23- 7) State the use of “$” sign in PHP.
W23- 8) State any 2 difference between for and for each.
S24- 9) List any four advantages of PHP.

2) Arrays, Functions and Graphics


S22- 1) What is array ? How to store data in array ?
W22- 2) Define Array. State its example.
S23- 3) State the use of strlen() & strrev().
W23- 4) List different types of arrays.
W23- 5) Explain functions. List its types.
S24- 6) State the use of str-word-count along with its syntax.

3) Apply Object Oriented Concepts in PHP


S22- 1) List types of inheritance.
W22- 2) State the role of constructor.
S23- 3) Define introspection.
W23- 4) Explain cloning object.
W23- 5) Explain class and object creation.
S24- 6) Define Serialization.

4) Creating and validating forms


S22- 1) How can we destroy cookies ?
S22- 2) How to create session variable in PHP ?
W22- 3) State the use of Cookies.
W22- 4) State role of GET and POST methods.
S23- 5) Enlist the attributes of cookies.
S23- 6) Define GET & POST methods.
W23- 7) List attributes of cookie.
S24- 8) Differentiate between Session & Cookies. (Any two points)
S24- 9) Explain in short how can we destroy cookies

5) Database operations
W22- 1) List two database operations.
S23- 2) Write syntax of constructing PHP webpage with MySQL.
W23- 3) Define MySQL.
S24- 4) List out the database operations.

**Program
S24- 5) Write a program using Foreach loop.
4Marks
1) Expressions and control statements in PHP
S22- 1) Write down rules for declaring PHP variable
W22- 2) Explain the use of break and continue statements.
W22- 3) Describe the syntax of if-else control statement with example in PHP.
W23- 4) Explain the use of break and continue statement.
W23- 5) List loop control structures. Explain any one loop control structure.
W23- 6) Explain the following terms :
(i) Variables (ii) Datatypes
(iii) Constant (iv) Operators
S24- 7) Explain different loops in PHP.

2) Arrays, Functions and Graphics


S22- 1) Define function. How to define user defined function in PHP ? Give
example.
W22- 2) Explain Indexed array and associative arrays with suitable example.
W22- 3) Explain two functions to scale the given image.
W22- 4) Describe user defined function with example.
S23- 5) Explain associative and multi-dimensional arrays.
S23- 6) Differentiate between implode and explode functions.
S23- 7) State user defined function and explain it with example.
W23- 8) Explain the operations on string :
(i) strrev( )
(ii) strpos( )
W23- 9) Explain procedure to create PDF in PHP. Write example.
S24- 10) Differentiate between implode & explode functions.
S24- 11) Explain Indexed & Associative arrays with suitable example.

3) Apply Object Oriented Concepts in PHP


S22- 1) Define Introspection and explain it with suitable example.
S22- 2) Explain method overloading with example.
W22- 3) Define Introspection. Explain it with suitable example.
W22- 4) Write syntax to create class and object in PHP.
S23- 5) Define serialization and explain it with example.
S23- 6) Explain the concept of cloning of an object.
S23- 7) Describe inheritance, overloading, overriding & cloning object.
W23- 8) Explain constructor and destructor in PHP.
S24- 9) Define Introspection and explain it with suitable example.
S24- 10) Explain constructor with example.

4) Creating and validating forms


S22- 1) Write difference between get( ) & post( ) method of form (Any four
points).
S22- 2) Define session & cookie. Explain use of session start.
S22- 3) How do you validate user inputs in PHP ?
W22- 4) Describe :
(i) Start session
(ii) Get session variables
W22- 5) State any four form controls to get user’s input in PHP.
W22- 6) Write steps to create webpage using GUI components.
S23- 7) Describe the procedure of sending e-mail.
S23- 8) Describe the procedure of validation of web page.
S23- 9) Explain web server role in web development.
S23- 10) Create a web page using GUI components.
W23- 11) Differentiate between session and cookies.
W23- 12) Design a web page using following form controls :
(i) Radio Button
(ii) Checkbox
S24- 13) Explain mail ( ) function in PHP with example
S24- 14) Define session & cookie. Explain use of session start.
S24- 15) Explain web page validation with example.

5) Database operations
S22- 1) Explain delete operation of PHP on table data.
S22- 2) Inserting and retrieving the query result operations.
W22- 3) Write steps to create database using PHP.
W22- 4) Explain queries to update and delete data in the database.
S23- 5) Write update & delete operations on table data.
S23- 6) Explain inserting & retrieving the query result operations.
W23- 7) Explain update and delete operations on table data.
W23- 8) Explain the following :
(i) POD : :_construct( )
(ii) mysqli_connect( )
S24- 9) Explain inserting and retriving the query result operations.
* Program :
S22- 1) Write a program to create associative array in PHP.
S22- 2) Write PHP script to sort any five numbers using array function.
S22- 3) Write PHP program for cloning of an object.
S22- 4) 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.
W22- 5) Write a program for cloning of an object.
S23- 6) Write a program using do-while loop.
W23- 7) Develop a simple program for sending and receiving plain text
message.
W23- 8) Develop a program to connect PHP with MySQL.
W23- 9) Develop a PHP program for overriding.
S24- 10) Write a program to create PDF document in PHP
S24- 11) Write a program to demonstrate concept of inheritance in PHP.
S24- 12) 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.
S24- 13) Write PHP program to demonstrate delete operation on table data.
6MARKS
1) Expressions and control statements in PHP
S22- 1) Explain different loops in PHP with example.
S23- 2) Implement any three data types used in PHP with illustration.
S24- 3) Explain decision making statements along with their syntax in PHP.

2) Arrays, Functions and Graphics


S22- 1) Explain any four string functions in PHP with example
W23- 2) List string function in PHP. Explain any two.
S24- 3) Explain the following string functions with example :
(i) Str-replace
(ii) Vcwords( )
(iii) Strlen( )
(iv) Strtoupper( )

3) Apply Object Oriented Concepts in PHP


S22- 1) (i) What is inheritance ?
(ii) Write update operation on table data
W22- 2) Illustrate class inheritance in PHP with example.
W22- 3) (i) State the use of serialization.
(ii) State the query to insert data in the database.
S23- 4) Explain the concept of constructor and destructor in detail.
S24- 5) Explain method overriding with example.

4) Creating and validating forms


S23- 1) Describe form controls – text box, text area, radio button, check box,
list & buttons.

5) Database operations
S22- 1) How do you connect MySQL database with PHP.
S23- 2) Elaborate the following :
(i) _ call ()
(ii) Mysqli _ connect ()
DONT KNOW
S24- 1) Explain interface with example.

**Program
S22- 1) Create a class as “Percentage” with two properties length & width.
Calculate area of rectangle for two objects.
S22- 2) Write a PHP program to demonstrate use of cookies
W22- 3) Write a PHP program to display numbers from 1-10 in a sequence
using for loop.
W22- 4) Write a program to connect PHP with MySQL.
W22- 5) Write a PHP program to set and modify cookies.
W22- 6) Write a PHP program to
(i) Calculate length of string
(ii) Count number of words in the string
S23- 7) Write a program to connect PHP with MySQL.
S23- 8) Write a program to create PDF document in PHP.
W23- 9) Write a PHP program on Introspection.
W23- 10) Write a PHP program to demonstrate session management.
W23- 11) Develop a PHP program to
(i) Enter data into database
(ii) Retrieve and present data from database
W23- 12) Develop a PHP program to create constructor to initialize object of
class
W23- 13) Develop a PHP program without using string functions :
(i) To calculate length of string
(ii) To count the number of words in string
S24- 14) Write PHP program to demonstrate database operation using PHP
and MySQL.
S24- 15) Write a PHP program to demonstrate use of cookies.

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