BITM 4th Semester
Web Programming II Board Question Paper 2021

Views: ...

website-logo TUpapers.com
TRIBHUVAN UNIVERSITY
FACULTY OF MANAGEMENT
Office of the Dean
August 2021
Full Marks:40 Pass Marks:20 Time:2 hrs
BIM /
Fourth Semester /
IT 219:
Web Programming II

Candidates are required to give their answers in their own words as for as practicable.
The figures in the margin indicate full marks

Long Answer Questions
Section "A"

Brief Answer Questions:

[10×1=10]
1.

How do you create 2-D array in PHP?

2.

Differentiate between client side and server side scripting language.

3.

How do you inspect file permission inPHP?

4.

Write a statement to create a 2D array in PHP ?

5.

Write the syntax for do .. while loop in PHP ?

6.

What do you mean by POST method?

7.

How can you prevent SQL injection inPHP?

8.

Write a PHP program to display the current date in PHP ?

9.

What is the use of mktime()?

10.

How can you generate a unique id in PHP?

Section "B"

Exercise problems:

[5×4=20]
11.

Write a PHP function that accepts an array of integers and display in ascending order.

12.

Write a PHP program to demonstrate that contain a textbox for name , a textbox for age and a textarea for comments. Validate the data before submitting the data to the server. Assume all the required validations and age must be between 1 to 100.

13.

Write a PHP program to insert subject code, subject description, credit into database .
Make all the required assumptions about the database.

14.

Write a PHP program to create a webform with two textboxes (name and age), a radio button for gender and a submit button. When a submit button is clicked, save the data to the file named "Person.txt."

15.

Write a program to demonstrate session variable in PHP.

Section "C"

Comprehensive Answer Questions:

[2×5=10]
16.

Explain default values in form with example.

17.

Write short notes on (any two)
a. Variable scope
b. Changing the format of Retried rows
c. Cross site scripting attack and its prevention