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 JavaScript operators? Explain each with suitable examples.
3. What is event handling in JavaScript? Give example of any two events.
4. Explain the difference between if-else and switch control structures with examples.
5. Design a simple HTML form and explain how client-side validation is applied using JavaScript.
6. Write a PHP function to calculate simple interest using principal, rate, and time as parameters.
7. Write a PHP program to connect to a MySQL database and display records from a table in an HTML table format.
8. Write a PHP program to create a class student with data members and display student details using an object.
Group C
9. Explain JavaScript function in details. Differentiate between built-in function and user-defined function with suitable example.
10. Write a PHP program to demonstrate exception handling in PHP for division by zero and invalid input.
11. A college wants to manage student records using a web application. Design an HTML form and write a PHP program to insert, update, delete and display student data using a MySQL database. [Assume a database connection to the college database is already established.]