Tribhuvan University
Bachelor of Information Technology
Semester 5 · TU Board 2081
Course Title: Web Technology II (BIT301)
Full Marks: 60Pass Marks: 24Time: 3 hours
Candidates are required to give their answers in their own words as far as practicable.
Group A
Attempt any Two questions.(2 × 10 = 20)
- 1.10
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.
- 2.10
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.
- 3.10
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.
Group B
Attempt any Eight questions(8 × 5 = 40)
- 4.5
How conversion between arrays and variables is done using extract() and compact() functions?
- 5.5
What is exploding and imploding of strings? Illustrate with an example.
- 6.5
How is class different from interface? Illustrate with an example.
- 7.5
What is a session? How can you handle sessions in PHP?
- 8.5
Define error handlers and error logs with examples.
- 9.5
Write a PHP program to read a file.
Answer comingAlso asked in 2080
- 10.5
Describe the concepts of display_errors, variables_order and request_order in PHP.ini Settings.
- 11.5
Describe the date time functions with examples.
- 12.5
Write a PHP program to demonstrate use of constructor.
— The End —