Scripting Language 2024

Tribhuwan University
Faculty of Humanities and Social Sciences
OFFICE OF THE DEAN
2024
Bachelor of Computer Applications
Course Title: Scripting Language
Code No: CACS254
Semester: Fourth Semester
Full Marks: 60
Pass Marks: 24
Time: 3 hours
Candidates are required to answers the questions in their own words as far as possible.

Group B

Attempt any SIX questions. [6 * 5 = 30]

Write JS program to highlight all of the words over eight characters long in the paragraph text (with a red background)

5 marks view

What is javaScript?  Explain different types of javascript with proper  example.

5 marks view

Write PHP function that accepts username and password as arguments and check with student table, if credentials match, redirect to dashboard page otherwise display 'Invalid username/password'.

5 marks view

What is jQuery? Explain XMLHttpRequest object with its properties and methods with relevant example.

5 marks view

What is Widgets? Explain different Features of CMS.

5 marks view

Write rules to create variable in PHP. How to create , store , access and destroy session in PHP?

5 marks view

Write short note on (any two)

a) Types of array in PHP

b) Arrow Function in JavaScript

c) jQuery UI

5 marks view

Group C

Attempt any TWO questions.

Write server side script to create and validate form with following rule and store given data into 'patients' table with details (name, patient-id, 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 marks view

What is JavaScript Event? Explain different method that are available to access DOM element using id, class, name and selector with suitable example.

10 marks view

What is inheritance? Explain different ways to implement polymorphism in PHP with proper example.