Tribhuvan University
Bachelor of Information Technology Management
Semester 4 · TU Board 2021
Course Title: Web Programming II (IT219)
Full Marks: 40Pass Marks: 20Time: 2 hrs
Candidates are required to give their answers in their own words as for as practicable.
Group A
Brief Answer Questions(10 × 1 = 10)
- 1.1
How do you create 2-D array in PHP?
- 2.1
Differentiate between client side and server side scripting language.
- 3.1
How do you inspect file permission inPHP?
- 4.1
Write a statement to create a 2D array in PHP ?
- 5.1
Write the syntax for do .. while loop in PHP ?
- 6.1
What do you mean by POST method?
- 7.1
How can you prevent SQL injection inPHP?
- 8.1
Write a PHP program to display the current date in PHP ?
- 9.1
What is the use of mktime()?
- 10.1
How can you generate a unique id in PHP?
Group B
Exercise problems(5 × 4 = 20)
- 11.4
Write a PHP function that accepts an array of integers and display in ascending order.
- 12.4
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.4
Write a PHP program to insert subject code, subject description, credit into database . Make all the required assumptions about the database.
- 14.4
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.4
Write a program to demonstrate session variable in PHP.
Group C
Comprehensive Answer Questions(2 × 5 = 10)
- 16.5
Explain default values in form with example.
Answer comingAlso asked in 2023
- 17.5
Write short notes on (any two) a. Variable scope b. Changing the format of Retried rows c. Cross site scripting attack and its prevention
— The End —