CACS254 Scripting Language

Scripting Language TU Board 2024 question paper

10 questionsSit this paper (timed)

Tribhuvan University

Bachelor of Computer Application

Semester 4 · TU Board 2024

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 A

    Group B

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

    1. 2.

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

      5
    2. 3.

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

      5
    3. 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
    4. 5.

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

      5
    5. 6.

      What is Widgets? Explain different Features of CMS.

      5
    6. 7.

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

      5
    7. 8.

      Write short note on (any two) a) Types of array in PHP b) Arrow Function in JavaScript c) jQuery UI

      5

    Group C

    Attempt any TWO questions(2 × 10 = 20)

    1. 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
    2. 10.

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

      10
    3. 11.

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

      10

    — The End —