BIT301 Web Technology II

Web Technology II TU Board 2080 question paper

12 questionsSit this paper (timed)

Tribhuvan University

Bachelor of Information Technology

Semester 5 · TU Board 2080

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. 1.

    How can you embed PHP code in web pages? Write a PHP program to illustrate the concepts of continue and break statements.

    10
  2. 2.

    Describe variables and missing parameters with examples. Write a PHP program to implement functions containing parameters by reference.

    10
  3. 3.

    How can you create a database connection? Create a PHP form that includes text field, password field, radio button elements. Now write a function to insert the data in the fields into a database table.

    10

Group B

Attempt any Eight questions(8 × 5 = 40)

  1. 4.

    How can you remove and insert elements in an array? Explain by writing a PHP program using array_splice() for inserting and removing elements in an array.

    5
  2. 5.

    How is the approximate equality of two strings done in PHP? Write a program to demonstrate it.

    5
  3. 6.

    Write a PHP program to demonstrate the concept of inheritance.

    5
  4. 7.

    What is a cookie? Write PHP program to create cookie.

    5
  5. 8.

    Define error reporting and error suppression with examples.

    5
  6. 9.

    Write a PHP program to write on a file.

    5
  7. 10.

    Write a PHP program to illustrate the use of exception handling.

    5
  8. 11.

    Differentiate anonymous function from variable function.

    5
  9. 12.

    Write a PHP program to access properties and methods of a class.

    5

— The End —