Scripting Language — CACS254 (4th Sem)
Tribhuvan University BCA · 4th Semester · CACS254 · 2023
Extracted text (for search)
Plain text pulled from the file — layout, tables and diagrams don't survive extraction. For the real thing, use the viewer above.
ye Tribhuvan University
wey : Oo 4 Faculty of Humanities & Social Sciences
Aa “G rN OFFICE OF THE DEAN
wy 2023
Bachelor in Computer Applications Full Marks: 60
Course Title: Scripting Language Pass Marks: 24
Code No: CACS254 Time: 3 hours
Semester: IV Batch: 2020
Candidates are required to answer the questions in their own words as far as possible.
Group B
Attempt any SIX questions. [6x5 = 30]
2. What is need for client side scripting? Write a JavaScript which accept user’s first and last
~ name and print them in reverse order with space between them. [14]
3, Write a HTML code to design a form with three radio button green, red, blue and black. Write
a JavaScript code that will change the background color of the page when user clicks on
particular button. [2+3]
4. What do you mean by super global variable in PHP? How to read and write CSV file in PHP
explain with suitable example. [2+3]
5. What is an associative array? Write a PHP program to create a multidimensional array that —
holds the marks of five subject like Operating system, Scripting, Numerical method,
DBMS, Software Engineering and of three student Aashis, Jayanti, Niraj. Then display the
average marks of each student. Some e [1+4]
6. What is use of inheritance? Write an object oriented PHP program to define Person class and
derive student and employee class from it to demonstrate hierarchical inheritance. [1+4]
I< What is syntax to create AJAX object? Design and develop dynamic web application using
<" HTML, AJAX and PHP. | [1+4]
‘8., What is difference between WordPress theme and template? Write the steps to add and edit
pages in WordPress. [2-43] .
; Group C
Attempt any TWO questions. [2x10 = 20]
9, What are different way to include JavaScript in HTML document? Create a HTML page
containing a division with image and its description in paragraph. Write a JavaScript function
to change the value of description in the paragraph during onmouseover and onmouseout on
the image. or aes | [3+7]
10. Design a HTML registration form containing text box for Name and Email, radio button for
gender, selection list for education field. Write a PHP script to validate input and then store
data from the form into database using database connection and appropriate query. [3+3+4]
11. How jQuery is differing from JavaScript? Discuss different types of jQuery selectors with
example. [4+6]
10. Make a Script for the server site to display the following data by reading from a database and saving
any new values that the user has updated. Think about the specifications of your own database, if any.
UpdateForm——--————_______
Choose ID : 7 v! |
UserName :
Sanches zy ee
_ | {Superuser Fee |
Password:
. > i Veeeaseo ' : t
(ee? ea i
Confirm Password :
rreyet | "
| Email: |
i } 7 : ;
,admin@gmail.com
| Update |
11. Make a well-formed XML document as per the diagram below, then use an appropriate XSD
_ document to validate it in consideration with below restrictions. [2+2+2+2+2]
POSE alle gt :
| TU on Employee Shoe
UserName “ :
XSD Restrictions: .
a) The username must have a minimum of 8 characters.
b) The character limit for posts is 5 to 8.
' _ ¢) The password must be 8 characters long and begin with Aa-Zz.
d) The gender must be one of male, female, or other.
e) The salary should range from Rs. 25,000 to Rs. 50,000.
comments