Tribhuwan University

Institute of Science and Technology

2081

Bachelor Level / Third Year / Fifth Semester / Science

Bachelors in Information Technology (BIT301)

(Web Technology II)

Full Marks: 60

Pass Marks: 24

Time: 3 Hours

Candidates are required to give their answers in their own words as for as practicable.

The figures in the margin indicate full marks.

Section A

Long Answers Questions

Attempt any TWO questions.
[2*10=20]
1.
What is server side scripting? How can you define and declare variables in PHP? Write PHP programs to demonstrate concepts of while and do while loops.[10]
2.
How can you define and declare functions? Differentiate global variable from static variable. Write a PHP program to demonstrate the use of global and static variables.[10]
3.
What is a PHP Data Object? How does MySQLi Object Interface work? Write a PHP program to read data elements from a database table and display in a page.[10]
Section B

Short Answers Questions

Attempt any Eight questions.
[8*5=40]
4.
How is class different from interface? Illustrate with an example. [5]
5.
What is a session? How can you handle sessions in PHP? [5]
6.
Define error handlers and error logs with examples. [5]
7.
Write a PHP program to read a file. [5]
8.
Describe the concepts of display_errors, variables_order and request_order in PHP.ini Settings. [5]
9.
Describe the date time functions with examples. [5]
10.
Write a PHP program to demonstrate use of constructor. [5]
11.
How conversion between arrays and variables is done using extract() and compact() functions? [5]
12.
What is exploding and imploding of strings? Illustrate with an example. [5]