Scripting Language 2024

Question Paper Details
Tribhuwan University
Faculty of Humanities and Social Sciences
OFFICE OF THE DEAN
2024
Bachelor of Computer Applications
Course Title: Scripting Language
Code No: CACS254
Semester: Fourth Semester
Full Marks: 60
Pass Marks: 24
Time: 3 hours
Candidates are required to answers the questions in their own words as far as possible.

Group B

Official Answer
AI Generated Answer

AI is thinking...

Attempt any SIX questions. [6 * 5 = 30]

Official Answer
AI Generated Answer

AI is thinking...

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

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

What is javaScript?  Explain different types of javascript with proper  example.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

Write PHP function that accepts username and password as arguments and check with student table, if credentials match, redirect to dashboard page otherwise display 'Invalid username/password'.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

What is jQuery? Explain XMLHttpRequest object with its properties and methods with relevant example.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

What is Widgets? Explain different Features of CMS.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

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

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

Write short note on (any two)

a) Types of array in PHP

b) Arrow Function in JavaScript

c) jQuery UI

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

Group C

Official Answer
AI Generated Answer

AI is thinking...

Attempt any TWO questions.

Official Answer
AI Generated Answer

AI is thinking...

Write server side script to create and validate form with following rule and store given data into 'patients' table with details (name, patient-id, 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 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

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

10 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

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

Official Answer
AI Generated Answer

AI is thinking...