Official 2019 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 concept structure and importance of DOM.
3. What is JavaScript? Write JavaScript code to print smallest and largest numbers among 10 elements of an array.
4. What is a dialog box? Explain different dialog boxes with suitable examples in JavaScript.
5. Explain the two HTTP functions to accept user values from an interface with a suitable PHP program.
6. What is the use of jQuery? Write a sample program to show and hide a certain div with the use of jQuery.
7. Why is Ajax required in web development? Write a sample program to synchronize data between JavaScript and PHP.
8. What is CMS? Write the steps to create a submenu in WordPress or Joomla.
Group C
9. Design a form in HTML and display the value in the result box after calculating basic arithmetic operations based on user input with the use of JavaScript.
10. Write an object-oriented PHP program to implement the concept of inheritance considering the following class diagram with the use of a constructor for 20 students.
11. Design a form in HTML and write corresponding PHP and MySQL code to store user values after satisfying the following validation rules: a. Length of Full name up to 40 characters. b. Email address must be valid. c. Username must start with a string and be followed by numbers. d. Password length must be more than 8 characters.