You are on page 1of 2

Seat No.: ________ Enrolment No.

___________

GUJARAT TECHNOLOGICAL UNIVERSITY


BVOC - SEMESTER–III EXAMINATION – WINTER 2021
Subject Code:1130203 Date:03/01/2022
Subject Name:Web Development using PHP
Time:10:30 AM TO 12:30 PM Total Marks: 50
Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.
4. Simple and non-programmable scientific calculators are allowed.

Q.1 (a) Why is usage of PHP as a server side script beneficial? 05


(b) State the steps to test web server setup. 05

Q.2 (a) How could one use PHP conditional statement for web application 05
development?
(b) How could one control an array using a while loop? 05
OR
(b) What is the purpose of for each loop in PHP? 05

Q.3 (a) How could one define and call his own user defined function on 05
PHP?
(b) How is PHP system variable GET different that POST? 05
OR
Q.3 (a) What is the difference between print() and echo in PHP? 05
(b) Explain any five string functions available in PHP with example. 05

Q.4 (a) Write PHP code to upload files to a web server. 05


(b) List and explain the different elements of HTML form. 05
OR
Q.4 (a) Write PHP code to send data through PHP form from one web page 05
to another and print the value in second page.
(b) How many types of regular expressions are there in PHP? Explain 05
briefly.

Q.5 (a) What are different types of errors thrown by PHP? 05


(b) How could one handle errors in PHP? 05
OR
Q.5 (a) Write code to connect PHP web page with MySQL giving an 05
appropriate example.
(b) How could one connect PHP with Oracle? 05

You might also like