BIT301 · TU past paper
Web Technology II 2080 question paper
The complete TU 2080 exam paper for Web Technology II (BIT301), all 12 questions with solved model answers written to the mark scheme.
Tap a question to open its answer.
- Q1.10 marksEmbedding PHP code in web pagesHideAnswer
How can you embed PHP code in web pages? Write a PHP program to illustrate the concepts of continue and break statements.[10]
- Q2.10 marksParameters by referenceHideAnswer
Describe variables and missing parameters with examples. Write a PHP program to implement functions containing parameters by reference.[10]
- Q3.10 marksDatabase connection creationHideAnswer
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]
- Q4.5 marksString comparison and approximate equalityHideAnswer
How is the approximate equality of two strings done in PHP? Write a program to demonstrate it. [5]
- Q5.5 marksCookie creation and handlingHideAnswer
What is a cookie? Write PHP program to create cookie. [5]
- Q6.5 marksError reporting and configurationHideAnswer
Define error reporting and error suppression with examples. [5]
- Q7.5 marksFile writing operationsHideAnswer
Write a PHP program to write on a file. [5]
- Q8.5 marksException handling and try catchHideAnswer
Write a PHP program to illustrate the use of exception handling. [5]
- Q9.5 marksAnonymous functions and variable functionsHideAnswer
Differentiate anonymous function from variable function. [5]
- Q10.5 marksClass properties and attributesHideAnswer
Write a PHP program to access properties and methods of a class. [5]
- Q11.5 marksArray element insertion and removal with aHideAnswer
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]
- Q12.5 marksInheritance and class hierarchyHideAnswer
Write a PHP program to demonstrate the concept of inheritance. [5]