(i) Printed Pages : 3 Roll No. ......ss0000
(ii) Questions 29 Sub. Code: [o[9 [5]
Exam. Code:
Bachelor of Computer Applications 5" Sem.
(2123)
WEB APPLICATION DEVELOPMENT USING PHP
Paper—BCA-16-504
Time Allowed : Three Hours] [Maximum Marks : 65
Note :— Attempt FIVE questions in all by selecting ONE question
from each unit. Entire question number [X is compulsory.
UNIT-I
I. Differentiate the followings :
(a) Client-Side Scripting and Server-Side Scripting
(b) Static and Dynamic Websites
(c) Echo and Print Statements. 5,4,4
Il. (a) How many types of loops are supported by PHP ? Explain
their syntax and examples.
(b) Explain the use of File Inclusion statements used in PHP.
7,6
UNIT-IL
III. (a) How are user-defined functions created and invoked in
PHP ? Give any suitable example.
0950/PB-11991 1 [Turn over(b)
TV. (a)
(b)
What is a Recursive Function ? Explain its use with the
help of examples. 7,6
Write String Functions for the following in PHP :
(a) To check whether a string is empty or not
(b) To create a substring
(c) To search a Substring in a given string.
Explain the syntax and use of foreach loop in accessing
Arrays elements in PHP. Give examples. 7,6
UNIT-II
V. Write a PHP script to accept student-id, student name and student
age from the user through HTML form, store it in a database
Table named as 'Student' and display those records in a Tabular
form.
VI. (a)
(b)
VIL (a)
(b)
VIII. (a)
(b)
13
What is a Data Set ? How is it fetched ? Explain with the
help of suitable example in PHP.
List and explain use and scope of Super Global variables
in PHP with examples. 7,6
UNIT-IV
How is a session cookie created, used and deleted in PHP ?
Give a suitable example.
What is a Session ? Explain its use in PHP. 7.6
Explain various file reading and writing functions used in
PHP.
Explain the file permissions allowed in PHP. How can they
be changed ? 7,6
0950/PB-11991 2(Compulsory Question)
IX. Write short answers :
(i) Differentiate between $x == $y and $x ===$y.
(ii) Name and explain the function used to display the type of
a variable.
(iii) Differentiate between Actual and Formal parameters.
(iv) What is the use of header () function in PHP ?
(v) How is a page set as a home page in a PHP based site ?
(vi) How isa file deleted in PHP ?
(vii) What do you understand by term PHP ? 6x2+1
0950/PB-11991 3 4500