Official 2020 board examination paper for the Scripting Language subject.

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. What is JavaScript? What are the potential platforms where JavaScript can be used?

3. Define JavaScript event. Illustrate how an event handler responds to a particular event on a web page.

4. What is an Immediately Invoked Function in JavaScript? Explain with a suitable example.

5. Explain an array using a suitable example and discuss how a foreach loop accesses elements stored in an array using PHP.

6. What is jQuery? Illustrate different types of selectors in jQuery with appropriate examples.

7. What is the benefit of using AJAX? Discuss major methods that communicate with server-side scripting.

8. Discuss the MVC architecture with an appropriate diagram.

Group C

9. a) Write a program which includes a function sum(). This function should be designed to add an arbitrary list of parameters (e.g., if you call sum(1, 2) it should return 3; if you call sum(1, 3, 4) it should return 8). b) Write a program that displays the continuous time on the web page in HH:MM:SS format.

10. Define method overriding. Write a PHP program to handle an overriding situation.

11. Design a form in HTML and write corresponding PHP and SQL code for CRUD operations based on user data. Assume your own database and connectivity constraints if necessary.