Mid-Term examination question paper set for Scripting Language from the year 2025.
Tribhuvan University
Faculty of Humanities & Social Sciences
OFFICE OF THE DEAN
2025
Bachelor in Computer Applications
| Paper detail | Value |
|---|---|
| Course | Scripting Language |
| Code No. | CACS254 |
| Semester | IVth |
| Full marks | 60 |
| Pass marks | 24 |
| Time | 3 hours |
Candidates are required to answer the questions in their own words as far as possible.
Group B
2. How client side scripting and server side scripting are different? Explain. [5]
3. Explain about event handling in JavaScript. Discuss any two ways to register event handler with appropriate examples. [2.5 + 2. 5]
4. What is DOM manipulation? Explain any three DOM manipulation tasks using jQuery. [2 + 4]
5. What is an associative array in PHP? Write a program to demonstrate the concept of 2 D associative array in PHP with programming example. [2 + 3]
6. Create a html form having two text fields and a submit button. Now write PHP code to take two numbers from the text fields and display "Happy" if the sum of two numbers is divisible by 5, display "Fit and Fine" if the sum is divisible by 3, display "Programming is Fun" if the sum is greater than thrice the second number and display "Yes!Yes!!" otherwise. [5]
Group C
7. Explain about the importance of regular expressions. Create a web application having an image, when mouse cursor is placed over the image, description of the image should be displayed on a paragraph below that image and when mouse cursor is removed from the image, the description should vanish. Now place a form below that with validation using JS. The validation errors should be displayed after each field if invalid considering following validation rules.
8. All fields are required. (name, username, age, password and confirm password)
9. Name cannot have numbers and special characters
10. Username should be of minimum 8 characters and must begin with alphabet
11. Age cannot be less than 18 years
12. Password and confirm password must match.
13. Create a simple CRUD application using PHP and MySQL. Make your own assumption about database and table. The input field must be validated in server side. [10]