Bachelors Level/Third Year/Fifth Semester/Science bit/fifth semester/web technology ii/syllabus wise questions

Bachelors In Information Technology

Institute of Science and Technology, TU

Web Technology II (BIT301)

Year Asked: 2080, syllabus wise question

Cookies, Sessions and Authentication
1.
What is a cookie? Write PHP program to create cookie. [5]
Debugging PHP
1.
Define error reporting and error suppression with examples. [5]
2.
Write a PHP program to illustrate the use of exception handling. [5]
File Handling
1.
Write a PHP program to write on a file. [5]
Functions
1.
Describe variables and missing parameters with examples. Write a PHP program to implement functions containing parameters by reference. [10]
2.
Differentiate anonymous function from variable function. [5]
Introduction
1.
How can you embed PHP code in web pages? Write a PHP program to illustrate the concepts of continue and break statements. [10]
Objects
1.
Write a PHP program to demonstrate the concept of inheritance. [5]
2.
Write a PHP program to access properties and methods of a class. [5]
Strings and Arrays
1.
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.
How is the approximate equality of two strings done in PHP? Write a program to demonstrate it. [5]
Working with Database
1.
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]