BCA 4th Semester
Scripting Language Board Question Paper 2022

Views: ...
tribhuvan university logo

Tribhuvan university

Faculty of Humanities & Social Science
OFFICE OF THE DEAN

2022

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.

Explain features of JavaScript?

3.

What is NaN in JavaScript? Write JavaScript code to change background color of web page every second.

4.

What is arrow function? Write JavaScript code to calculate factorial of given number using arrow function.

5.

Write a program to create Chess board in PHP using loop.

6.

Write jQuery code to include date picker controls in HTML text box.

7.

Write a JavaScript program to retrieve any value from server-site script using Ajax.

8.

What is constructor? How you implement constructor in php?

Group C

Attempt any TWO questions

[2x10=20]
9.

What are advantages of inheritance? Write a PHP program to illustrate the concept of function overloading.

10.

Write HTML and JavaScript code to create a calculator for performing basic arithmetic operations.

11.

Design following form in HTML and write corresponding server-side script to upload and submit user's data into database in consideration of following validation rules.
Assume your own database and database connectivity related constraints if necessary.


Validation rules:
Registration number, email and upload file are mandatory field.
Email address should not be a proper email format.
Upload file format must include pdf, doc, docx, ppt, pptx, jpeg file format.
File size must be less than 5MB.