| END TERM EXAMINATION | |
| Third Semester[BCA] | Dec 2025-Jan 2026 |
| Paper Code: BCA-203T | Subject : Dynamic Web Desigining |
| Time:3 Hours | Maximum Marks:60 |
| Note: Attempt five questions in all, including Q.No.1, which is compulsory. Select one question from each unit. | |
| Q1 Answer the following in brief. (Any four) (4×5=20) | |
| (a) Define Web Server and its types. Distinguish among XAMPP, WAMP and LAMP. | |
| (b) Define Cookies. Difference between Persistence Cookies and Session Cookies. Write PHP syntax for creating a cookie which is not for persistence cookies which is set for 15 days. | |
| (c) Explain various types of PHP errors with example. | |
| (d) What is inclusion? Difference between include and require with suitable example. | |
(e) Explain the concept of Class, Object, Constructor and Destructor using a suitable PHP Script. What is the usage of $this variable? |
|
| (f) Explain PHP exception handling with suitable example. | |
| (g) Explain MySQL interface. Write PHP script for connecting and accessing database using MySQLi procedural. | |
| (h) What is AJAX? How it works? Explain with proper steps | |
| UNIT-I | |
| Q2. a) Define PHP Super Global variables. Explain the usage of any 3 super global variables with suitable example. (5) | |
| Q2. b) Explain different types of arrays in PHP. Write a PHP script to create and display the content of an associative array using foreach loop. (5) | |
| Q3. a) “PHP is Weakly/Loosely typed language”. Justify the statement. Explain the usage of PHP Constants, Variables and Data types with the help of suitable example. (5) | |
Q3. b)Explain the difference between $_GET, $_POST and $_REQUEST super global variables using a suitable example while collecting data through a form. (5) |
|
| UNIT-II | |
| Q4. a) Explain function in PHP? How a function can be defined and called? Explain the difference between call by value and call by reference using a suitable example. (5) | |
| b) What is Session? How variables are handled in session? Write a PHP script to count the number of visits of web page by the user session. (5) |
|
| Q5.a) Explain the different types of form methods used in PHP. Write a PHP script to create a Self-processing form that accepts a positive number from the user (apply validation) and display the factorial of the accepted number. (5) | |
| Q5. b) Distinguish between the following with example: | |
| i) Local and Global variable scope | |
| ii) Client-side and Server-side Web Management System (5) | |
| UNIT-III | |
| Q6. a) What is file handling in PHP? Write a PHP script to upload and download files. (5) | |
| Q6. b) Explain the difference between the following OOPs concepts with example: | |
| i) Overloading and Overriding | |
| ii) Single and Multiple Inheritance (5) | |
| Q7. a) Explain various PHP access modifiers with example. Write PHP program to create a class with the name Compute that performs the two operations Sum() add Multiply() on the set of 2 numbers using the concept of constructor and destructor. (5) | |
| Q7. b) Explain the following file handling operations with an example :
a) fopen() b) fread() c) fwrite() d) fgets() e) move_upload_file() |
|
| UNIT-IV | |
| Q8. a) Write PHP script to create a database named Company and within Company database, create a table named employee with the following fields: Empno, Ename, Designation and Salary and perform the following operations: (10) | |
| i) Insert the data records | |
| ii) Update the third record with the salary 30000 | |
| iii) Display the records in tabular format | |
| iv) Drop the table | |
| Q.8 b) What is MySQL? Explain various data types used in MySQL. | |
| Q9. a)Write PHP script to insert a student record in a table named student, which include the field names Rollno, Name, Age and Mobile number using form. Write the student Registration Form. Write to connect PHP to MySQL using database statement which is used to connect PHP to MySQL. Also, display the record in tabular format. (5) |
|
| Q9. b) Create an AJAX application that can demonstrate how web page can communicate with a web server while a user type characters in input field. (5) | |
Also check out the Python Programming Previous Year Paper here.