BCA 4th Semester
Scripting Language Board Question Paper 2026 - Tribhuvan University (TU) 2026

Views: …
Tribhuvan University official logo

Tribhuvan University

Faculty of Humanities & Social Science
OFFICE OF THE DEAN
TUpapers.com TUpapers.com

Bachelor In Computer Application

Course Title: Scripting Language

Code No: CACS 254

Semester: IV

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 the code to create and remove new list item into Unordered list dynamically into JavaScript DOM. [5]

3.

What is Ajax? Write code to check if phone is available or not into signup form using Ajax? [1+4]

4.

What is JS arrow function? Explain use of forEach() and map() method in JavaScript. [1+4]

5.

What is session? Describe how can we relate session with cookie? [1+4]

6.

What is CMS? Describe major features of CMS. [1+4]

7.

Describe different types of arrays in PHP with proper example. [5]

8.

Write PHP code to upload file in PHP with rules of file type (png, jpg, gif) and file size maximum 500kb? [5]

Group C

Attempt any TWO questions

[2x10=20]
9.

Write a program to perform Create and List Operation for student record with (roll, course, name, email, phone, result) database using PHP and MySQL? [5+5]

10.

Difference between abstract class and interface. Write PHP code to create a parent class Book with properties title, author and price and a method displayBookDetails(). Also create two subclasses TextBook and ReferenceBook that inherit from Book. Add property subject in TextBook and edition in ReferenceBook. Create methods to display complete details of each book. [3+7]

11.

Why do we need validation? Explain with examples which validation is best among client side and server-side validation. Write JavaScript program that use countries array to display 50 countries into tabular format with 4 countries in a row. [1+3+6]