BCA 4th Semester
Scripting Language Board Question Paper 2024

Views: ...
tribhuvan university logo

Tribhuvan university

Bachelor In Computer Application

Course Title: Scripting Language

Code No: CACS 254

Semester:IV

2024

Full Marks:60 Pass Marks:24 Time: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.
[6x5=30]
2.

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

3.

What is JavaScript? Explain different types of JavaScript with proper example.

4.

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.

What is jQuery? Explain XMLHttpRequest object with it's properties and methods with relevant example.

6.

What is Widgets? Explain different Features of CMS.

7.

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

8.

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

[2x10=20]
9.

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.

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

11.

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