Pre-Board examination question paper set for Scripting Language from the year 2082.
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. Define client-side scripting. Explain the need of JavaScript in web development.
3. What are JavaScript control structures? Explain with examples.
4. Write JavaScript code to demonstrate array creation and iteration using for-each loop.
5. What is DOM (Document Object Model)? Explain how JavaScript interacts with DOM elements.
6. Explain the concept of cookie in JavaScript and write code to set and read cookies.
7. What is form handling in PHP? Demonstrate with a simple example using $_GET or $_POST.
8. Write short notes on: (a) Browser Object Model (b) Function in JavaScript
Group C
9. Design a form containing text box for username, password field for password, radio button for gender and checkbox for hobbies. Write a program for client-side validation of the form for the username and password field as required fields, length of username should be 5, the radio button and checkbox should be checked.
10. Write a PHP code to demonstrate cookie, session and file upload.
11. Explain file handling in PHP with an example of reading and writing a file.