Official 2021 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. Explain the features of JavaScript.

3. What is NaN in JavaScript? Write JavaScript code to change the background color of a web page every second.

4. What is an arrow function? Write JavaScript code to calculate the factorial of a given number using an arrow function.

5. Write a program to create a chessboard in PHP using a loop.

6. Write jQuery code to include date picker controls in an HTML text box.

7. Write a JavaScript program to retrieve any value from a server-side script using Ajax.

8. What is a constructor? How do you implement a constructor in PHP?

Group C

9. What are the advantages of inheritance? Write a PHP program to illustrate the concept of function overloading.

10. Write HTML and JavaScript code to create a calculator for performing basic arithmetic operations.

11. Design a form in HTML and write a corresponding server-side script to upload and submit user data into a database, considering specific validation rules. Assume your own database and connectivity constraints if necessary.