0% found this document useful (0 votes)
732 views

Sem - 6 WEB Based Application Development With PHP. WBP (22619)

Uploaded by

Bhakti Shingadi
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)
732 views

Sem - 6 WEB Based Application Development With PHP. WBP (22619)

Uploaded by

Bhakti Shingadi
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/ 6

PROF – AMRITA RATHOD

SEM - 6
WEB Based Application
Development With PHP.
WBP
(22619)

MSBTE
CHAPTERWISE
QUESTIONS.
1
PROF – AMRITA RATHOD

CHAPTER 1:- Expressions and Control statements in PHP.


1) Describe advantage of PHP. (2M)
2) Write syntax of PHP. (2M)
3) Write down rules for declaring PHP variable. (4M)
4) Explain different loops in PHP with example. (6M)
5) Differentiate between for and for-each (any two points) loop control
structure. (2M)
6) Write the output for the following code: (2M)
<?php
$i=1;
do
{
echo “$i<br>”;
$i+=2;
} while ($i<10);
?>
7) State the use of “$” sign in PHP. (2M)
8) State the advantages of PHP (any four) (2M)
9) Write a program using do-while loop. (4M)
10) Implement any three data types used in PHP with illustration. (6M)
11) List any four data types of PHP. (2M)
12) Write syntax of for each loop. (2M)
13) Explain the use of break and continue statements. (4M)
14) Describe the syntax of if-else control statement with example in
PHP.(4M)
15) Write a PHP program to display numbers from 1-10 in a sequence
using for loop. (6M)

2
PROF – AMRITA RATHOD

CHAPTER 2:- Arrays , Functions and Graphics.


1) What is array? How to store data in array? (2M)
2) Write a program to create associative array in PHP. (4M)
3) Define function. How to define user defined function in PHP? Give
example. (4M)
4) Write PHP script to sort any five numbers using array functions. (4M)
5) Explain any four string functions in PHP with example. (6M)
6) State the use of array-combine() and array-merge(). (2M)
7) Explain spaceship operators available in php with suitable example. (4M)
8) Show the procedure/syntax to insert one or more elements at the beginning
of the array. (4M)
9) Write the difference between array_pop() and array_push() with suitable
example. (4M)
10) Write a function to sort an array and display the result. (6M)
11) Write a php script to create multiplication table using for loop.
1 2 ……………… 10
2 4 ……………… 20
3 6 ……………… 30
4 8 ……………… .
. . ……………… .
. . ……………… .
10 20 ……………… 100
12) Write php script to calculate and display average temperature, five
lowest and five highest temperature.
Recorded temp: {78, 60, 62, 68, 71, 68, 73, 85, 66, 64, 76, 63, 75, 76} (6M)
13) State the use of strlen() and strrev(). (2M)
14) Explain associative and multi-dimensional arrays. (4M)
15) Differentiate between implode and explode functions. (4M)
16) State user defined function and explain it with example. (4M)
17) Write a program to create PDF document in PHP. (6M)
18) Define Array. State its example. (2M)
19) Explain Indexed array and associative arrays with suitable example.
(4M)
20) Explain two functions to scale the given image. (4M)
3
PROF – AMRITA RATHOD

21) Describe user defined function with example. (4M)


22) Write a PHP program to
i) Calculate length of string
ii) Count number of words in the string (6M)

CHAPTER 3:- Apply Object Oriented Concepts in PHP.


1) List types of inheritance. (2M)
2) Define Introspection and explain it with suitable example. (4M)
3) Explain method overloading with example. (4M)
4) Write PHP program for cloning of an object. (4M)
5) Create a class as “Percentage” with two properties length & width. Calculate
area of rectangle for two objects. (6M)
6) What is inheritance? (3M)
7) List any four introspection methods. (2M)
8) Differentiate between constructors and destructor in four points. (4M)
9) Restate the concept of method overloading in php. Explain with example.
(4M)
10) Apply serialization concept in php. (4M)
11) Implement the following inheritance concept using php script. (6M)
12) Define Introspection. (2M)
13) Define serialization and explain it with example. (4M)
14) Explain the concept of cloning of an object. (4M)
15) Describe inheritance, overloading, overriding and cloning objects. (4M)
16) Explain the concept of constructor and destructor in detail. (6M)
17) State the role of constructor. (2M)
18) Write syntax to create class and objects in PHP. (4M)
19) Illustrate class inheritance in PHP with example. (6M)
20) i) State the use of serialization.
ii) State the query to insert data in the database. (6M)

4
PROF – AMRITA RATHOD

CHAPTER 4: - Creating and Validating Forms.


1) How can we destroy cookies? (2M)
2) How to create session variable in PHP. (2M)
3) Write difference between get() & post() method to form. (Any 4 points)
(4M)
4) Define session & cookie. Explain use of session start. (4M)
5) How do you validate user inputs in PHP. (4M)
6) 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. (4M)
7) Write a PHP program to demonstrate use of cookies. (6M)
8) State the use of mail (). Also write the steps for composing it. (2M)
9) List any four attributes of cookies. (2M)
10) Describe get and start session variables in php. (4M)
11) Demonstrate the creation of cookies in php, explain with suitable
example. (4M)
12) Write a script to perform arithmetic operations using textbox and
buttons. (4M)
13) Create a webpage for student form with stud_roll number,
student_name, stud_address_date_of_birth, mobile_no and branch, using
different form input element and display user inserted values in new php
form. (6M)
14) Enlist the attributes of cookies. (2M)
15) Define GET and POST methods. (2M)
16) Describe the procedure of sending e-mail. (4M)
17) Describe the procedure of validation of web page. (4M)
18) Create a web page using GUI components. (4M)
19) Explain web server role in web development. (4M)
20) Describe form controls – text box, text area, radio button, check box,
list and buttons. (6M)
21) State the use of Cookies. (2M)
22) State role of GET and POST methods. (2M)
23) Describe: i) Start session ii) Get session variables. (4M)
24) State any four form controls to get user’s input in PHP. (4M)
25) Write steps to create webpage using GUI components. (4M)
5
PROF – AMRITA RATHOD

26) Write a PHP program to set and modify cookies. (6M)

CHAPTER 5:- Database Operations.


1) List any four data types in MYSQL. (2M)
2) Explain delete operation of PHP on table data. (4M)
3) Inserting and retrieving the query result operations. (4M)
4) How do you connect MySQL database with PHP. (6M)
5) Write update operation on table data. (3M)
6) Write/state the use of mysql_fetch_row() and mysql_fetch_array()
commands. (2M)
7) Describe the working of mysql_fetch_array() command in php. Explain with
example. (4M)
8) Write a php script to delete records in table of mysql database. (4M)
9) Write php script for fetching the data from a database to webpage. (6M)
10) Write a php script to perform insert operations on table.
(min-3 insert). (6M)
11) Write syntax of constructing PHP webpage with MySQL. (2M)
12) Write update and delete operations on table data. (4M)
13) Explain inserting and retrieving the query result operations. (4M)
14) Write a program to connect PHP with MySQL. (6M)
15) Elaborate the following :
i) _call ()
ii) Mysqli_connect () (6M)
16) List two database operations. (2M)
17) Write steps to create database using PHP. (4M)
18) Explain queries to update and delete data in the database. (4M)

You might also like