Mid-term examination question paper set for Web Technology.

Tribhuvan University
Faculty of Humanities & Social Sciences
OFFICE OF THE DEAN
2025
Bachelor in Computer Applications

Paper detail Value
Course Web Technology
Code No. CACS205
Semester IIIrd
Full marks 60
Pass marks 24
Time 3 hours

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

Group B

2. What is JavaScript? Write JavaScript program that generate numbers from 1 to user input number and marking evens, odds and prime numbers with three different colors.

3. What is NoScript Tag? Define JavaScript event. Explain with example how event handler responds to event in a webpage.

4. What is jQuery? Explain different types of selectors in jQuery with example.

5. Explain the different way to implement Ajax in web development with a sample program to load dynamic content using JavaScript and PHP.

6. What are different PHP data types? Write a PHP program to check the largest number among three given integers.

7. What are the sessions and cookies? Differentiate them with examples.

8. Short Note (any two): a. Steps to create a sub-menu in WordPress or Joomla. b. Constructor in PHP c. JavaScript Built in objects.

Group C

9. Prepare a form that should contain an input for name, email and password. Write a server-side validation for empty and respective valid contents then perform the CRUD operation using PHP.

10. Design the following form in HTML and display the value in the result box after calculating basic arithmetic operations based on user input with use of JavaScript.

11. Implement interface in PHP with specific properties (e.g., radius for Circle class and side for Square class) to ensure that multiple classes provide their own implementations of a method (e.g., calculateArea), while leveraging these properties for calculations.