Official 2023 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 the need for client-side scripting? Write a JavaScript which accepts a user's first and last name and prints them in reverse order with a space between them.

3. Write HTML code to design a form with three radio buttons: green, red, blue, and black. Write JavaScript code that will change the background color of the page when the user clicks on a particular button.

4. What do you mean by a super global variable in PHP? How do you read and write a CSV file in PHP? Explain with a suitable example.

5. What is an associative array? Write a PHP program to create a multidimensional array that holds the marks of five subjects (Operating System, Scripting, Numerical Methods, DBMS, Software Engineering) for three students (Anshis, Jayanti, Niraj). Display the average marks for each student.

6. What is the use of inheritance? Write an object-oriented PHP program to define a Person class and derive Student and Employee classes from it to demonstrate hierarchical inheritance.

7. What is the syntax to create an AJAX object? Design and develop a dynamic web application using HTML, AJAX, and PHP.

8. What is the difference between a WordPress theme and a template? Write the steps to add and edit pages in WordPress.

Group C

9. What are the different ways to include JavaScript in an HTML document? Create an HTML page containing a division with an image and its description in a paragraph. Write a JavaScript function to change the value of the description in the paragraph during onmouseover and onmouseout on the image.

10. Design an HTML registration form containing text boxes for Name and Email, radio buttons for gender, and a selection list for education field. Write a PHP script to validate input and store data from the form into a database using database connection and appropriate queries.

11. How is jQuery different from JavaScript? Discuss different types of jQuery selectors with examples.