Pre-Board 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. What is dialog box? Explain different dialog boxes with suitable example in JavaScript. [5]

3. Discuss about different ways to define functions in JavaScript. Write a complete JS program to demonstrate how arrow function is used. [3 + 2]

4. What are session and cookies? Explain how session is used in PHP with suitable example to demonstrate the different steps in session handling. [2 + 3]

5. Describe how for loop and foreach loop works with array in PHP with suitable example.

6. What is Ajax? Create a web page that allows user to enter two numbers and displays the multiplication table of the bigger number using Ajax with PHP. [5]

7. What is the importance of server side validation? Create a form to take name and age values from user and validate on server side using PHP. [2 + 3]

8. What is CMS? Describe major features of CMS. [5]

Group C

9. Write a program to display all records of student in a web page in tabular format after reading from a database table using PHP (Assume the table contains some records of students). Also include a button for each record in HTML page and include the functionality to delete the corresponding record from database when the button is clicked. [10] Assume your own database, database connectivity constraints and schema.

10. Discuss about exception handling in PHP and necessary keywords with suitable examples. Explain about abstract class and interface in PHP with suitable examples for each. [5 + 5]

11. Explain about event handling in JavaScript with any two techniques to register event handlers and also list five common events with corresponding handler with the information about their occurrence. Create a signup form for an application with JavaScript validation. The error should appear next to each form element if exists. [5 + 5]