0% found this document useful (0 votes)
14 views4 pages

Web Technology Through PHP

This document is an examination paper for the B. Tech (CSE) Fourth Semester course on Web Technology through PHP, with a maximum score of 60 marks. It consists of three sections: Section A contains very short answer questions, Section B includes short answer questions, and Section C features long answer questions, all focused on PHP and web technology concepts. The paper covers topics such as PHP functions, database connectivity, file uploads, and form handling.

Uploaded by

Team shabdless
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)
14 views4 pages

Web Technology Through PHP

This document is an examination paper for the B. Tech (CSE) Fourth Semester course on Web Technology through PHP, with a maximum score of 60 marks. It consists of three sections: Section A contains very short answer questions, Section B includes short answer questions, and Section C features long answer questions, all focused on PHP and web technology concepts. The paper covers topics such as PHP functions, database connectivity, file uploads, and form handling.

Uploaded by

Team shabdless
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/ 4

Roll No. …………………..

TCS–404
B. Tech. (CSE) (Fourth Semester)
EXAMINATION, 2021-22
WEB TECHNOLOGY THROUGH PHP
Time : Three Hours
Maximum Marks : 60
Note : Question paper has three Sections. Read carefully
instructions for each Section.
Section–A
(Very Short Answer Type Questions)
1. Attempt all questions : 1 each
(a) Define the use of foreach loop in PHP.
(CO1, BL1)
(b) Differentiate between Implode and Explode
functions. (CO1, BL3)
(c) List various string functions in PHP.
(CO2, BL1)
(d) What are the data types supported by PHP ?
(CO1, BL1)
(e) What is the difference between JavaSacript and
PHP ? (CO1, BL1)

P. T. O.
[2] TCS–404

(f) Write the use of array_flip( ). (CO2, BL1)


(g) Define anchor attribute in HTML. (CO3, BL3)
(h) Define SAX Parser. (CO1, BL3)
(i) Define the GET and POST methods. (CO1, BL1)
(j) List out the advantages of PHP. (CO1, BL1)
(k) What is domain hosting ? Explain. (CO1, BL1)
(l) State the use of cloning of an object. (CO1, BL1)
Section–B
(Short Answer Type Questions)
2. Attempt all questions. 4 each
(a) Design a PHP program to print reverse of any
number. (CO2, BL3)
OR
What is RDBMS ? How to create a connection
between PHP and MySQL ?
(b) Explain database connectivity in PHP with
reference to MySQL. (CO3, BL1)
OR
What are FORMS ? Explain different form fields.
(c) Design a PHP script for uploading a file to the
server and display the uploaded files details.
(CO3, BL3)
OR
Define Session and Cookies. What is destroying
session ? Explain with an example and program.
[3] TCS–404

(d) List and explain the string functions in PHP. How


to delete cookies ? Explain. (CO3, BL1)
OR
Explain the predefined and user defined functions
in PHP with an example.
(e) Differentiate each( ) and foreach( ) function. How
to upload files with PHP functions ? (CO4, BL1)
OR
List and explain the control structures used in
PHP.
(f) What are the differences between GET and POST
methods in form submitting ? Give the case
where we can use GET and we can use POST
methods. (CO4, BL1)
OR
Differentiate between $_GET and $_POST
methods in PHP.
Section–C
(Long Answer Type Questions)
3. Attempt all questions. 8 each
(a) Write a PHP script which takes the username,
password and e-mail values from user and checks
whether the user has filled the textboxes or not.
Also, check the e-mail field whether it is incorrect
format or not. (CO4, BL1)

P. T. O.
[4] TCS–404

OR
What is content management ? Write the
advantages of CMS and its associated tools.
(b) Write the MySQL function used in PHP. How to
drop tables and databases ? Explain. (CO5, BL3)
OR
How a Browser communicate with Web servers ?
How to save the user’s data in file ? Also, write a
program on it.
(c) Create the indexed based arrays and write the
program to sort the elements using it. (CO5, BL1)
OR
Define the uses of serialize( ) and unserialize( ).
State the use of cloning of an object.

TCS-404

You might also like