CACS254 Scripting Language

Scripting Language TU Board 2022 question paper

10 questionsSit this paper (timed)

Tribhuvan University

Bachelor of Computer Application

Semester 4 · TU Board 2022

Course Title: Scripting Language (CACS254)

Full Marks: 60Pass Marks: 24Time: 3 hours

Candidates are required to answer the question in their own words as far as possible.

Group B

Attempt any SIX question.(6 × 5 = 30)

  1. 2.

    Explain features of JavaScript?

    5
  2. 3.

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

    5
  3. 4.

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

    5
  4. 5.

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

    5
  5. 6.

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

    5
  6. 7.

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

    5
  7. 8.

    What is constructor? How you implement constructor in php?

    5

Group C

Attempt any TWO questions(2 × 10 = 20)

  1. 9.

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

    10
  2. 10.

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

    10
  3. 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.

    10

— The End —