END TERM EXAMINATION
FIFTH SEMESTER (BCA) NOVEMBER-DECEMBER 2018
Paper Code: BCA-313
Subject: Web Based Programming
Time: 3 Hours
Maximum Marks: 75
Note: Attempt five questions in all including Q no.1 which is compulsory. Select one question from each unit.
- Q1. Attempt any ten of the following:- (2.5x10=25)
- (a) What is DHTML?
- (b) What is Open Source Software?
- (c) How do you give comment in PHP?
- (d) What is the difference between echo and print statement in PHP?
- (e) What is phpinfo()?
- (f) What is the difference between ‘ ’ and “ ”?
- (g) What is a lexical structure of PHP?
- (h) Explain the for each loop in PHP?
- (i) How do you concatenate two strings in PHP? Explain using suitable example.
- (j) What is the difference between $BCA and $$BC?
- (k) What is HTTP application state?
- (l) Explain the super global variables in PHP.
UNIT-I
- Q2. (a) Explain the web development tools required to make dynamic website in brief. (6)
- (b) What is the difference between static and dynamic website? (6.5)
- Q3. (a) Explain the types of scripting language and justify with example the importance of scripting language for creating a website. (6)
- (b) What is web server? Explain local and remote server. (6.5)
UNIT-II
- Q4. (a) Explain the following using example:- (6)
- (i) Sort()
- (ii) Is_array()
- (iii) Count()
- (iv) Shuffle()
- (v) Reset()
- (vi) End()
- (b) Write a PHP script to find whether a string is palindrome or not. (6.5)
- Q5. (a) What are the different types of arrays? Explain its benefit? (6)
- (b) What is the difference between explode(), extract() and compact() php function. Give example. (6.5)
UNIT-III
- Q6. (a) Create a registration form for a bank portal and session should expire if the system is idle for 1 minute.. (6)
- (b) What are the different types of errors in PHP? (6.5)
- Q7. (a) What is File Handling in PHP? Write a PHP script to open, close read and write into a file. (6)
- (b) What are cookies? How can we create and destroy cookies? (6.5)
UNIT-IV
- Q8. (a) What is MYSQL? What are the different data types in MYSQL? Explain each of them with suitable example. (6)
- (b) What is the difference between Drop and Alter table? Illustrate with example. (6.5)
- Q9. (a) What are the SQL commands to modify a database and justify each by writing a PHP script using student table having fields as Roll No., Name and DOB. (6)
- (b) Write the steps to create a table using MYSQL through Myadmin. (6.5)