BCA 4th Semester
Scripting Language Board Question Paper 2021

Views: ...
tribhuvan university logo

Tribhuvan university

Bachelor In Computer Application

Course Title: Scripting Language

Code No: CACS 254

Semester:IV

2021

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.

What is JavaScript? What are the potential platforms where JavaScript can be used?

3.

Define JavaScript event. Illustrate how an event handler response particular event in web page.

4.

What is an Immediately Invoked Function in JavaScript? Explain with suitable example.

5.

Explain an array using suitable example and discuss how foreach loop accessing of elements is stored in an array using PHP.

6.

What is jQuery? illustrate different types of selectors in jQuery with appropriate example?

7.

What is the benefit of using AJAX? Discuss major methods that communicate with server-side scripting.

8.

Discuss about MVC architecture with appropriate diagram.

Group C

Attempt any TWO questions

[2x10=20]
9.

a) Write a program which includes a function sum(). This function sum() should be designed to add an arbitrary list of parameters. (For e.g ., if you call the function sum() as sum (1, 2) it should return the result 3 and if again you call the function sum() as sum(1,3,4) it should return the result 8).
b) Write a program that displays the continuous time in the web page. The time should be in the format of HH:MM:SS.

10.

Define method overriding. Write a PHP program to handle the overriding situation.

11.

Design following form in HTML and write corresponding PHP and SQL code for CRUD operations based on user's data.
Assume your own database and database connectivity related constraints if necessary.