Tribhuvan University
Bachelor of Computer Application
Semester 4 · TU Board 2024
Course Title: Scripting Language (CACS254)
Full Marks: 60Pass Marks: 24Time: 3 hours
Candidates are required to answer the question in their own words as far as possible.
Group A
Group B
Attempt any SIX question.(6 × 5 = 30)
- 2.5
Write JS program to highlight all of the words over eight characters long in the paragraph text (with a red background).
- 3.5
What is JavaScript? Explain different types of JavaScript with proper example.
- 4.5
Write PHP function that accepts username and password as arguments and check with student table, if credential match, redirect to dashboard page otherwise display 'Invalid username/password'.
- 5.5
What is jQuery? Explain XMLHttpRequest object with it's properties and methods with relevant example.
- 6.5
What is Widgets? Explain different Features of CMS.
- 7.5
Write rules to create variable in PHP. How to create, store, access and destroy session in PHP?
- 8.5
Write short note on (any two) a) Types of array in PHP b) Arrow Function in JavaScript c) jQuery UI
Group C
Attempt any TWO questions(2 × 10 = 20)
- 9.10
Write server side script to create and validate form with following rule and store given data into 'patients' table with details (name, patientid, mobile, gender, address, dob, doctor name) • Name, Mobile, doctor name, gender, dob: Required • Mobile: 10 digit start with 98,97 or 96 • DOB: YYYY-MM-DD format
- 10.10
What is JavaScript Event? Explain different method that are available to access DOM element using id, class, name and selector with suitable example.
- 11.10
What is Inheritance? Explain different ways to implement polymorphism in PHP with proper example.
— The End —