Progressive Education Society’s
Modern College of Arts, Science & Commerce
(Autonomous), Ganeshkhind, Pune – 16
End Semester Examination: Nov/Dec 2023
Faculty: Science and Technology
Program: BCA Semester: III
Program (Specific): BCA(Science) SET: B
Class: SYBCA Course Type: CC
Name of the Course: Programming using PHP Max. Marks: 70
Course Code: 23-BCA-233 Time: 3 hours
Paper:
Instructions to the candidate:
1) There are 4 sections in the question paper. Write each section on separate page.
2) All Sections are compulsory.
3) Figures to the right indicate full marks.
4) Draw a well labelled diagram wherever necessary.
SECTION: A
Q1) a) (5 Multiple Choice Question) [ 5x1=5]
I) Which one of the following is the right way to invoke a method?
a) $ object method Name( ); b) object method Name( );
c) object method Name; d) $ object method Name;
II) AJAX is based on
a) JAVASCRIPT AND xml b) Vbscript and xml
c) Javascript and java d) Javascript and http request
III) What is codeigniter?
a) Java web application framework b) PHP web application framework
c) Python web application framework d) None Of The Above
IV) Which of the following function is used to compile the query.
a) prepare() b) execute() c) executemultiple() d) none of these
V).....................HTTP method sends a document from server to client.
a) GET b) POST c) HEAD d) PUT
b) Answer the following questions. [5x1=5]
I) Define constructor.
II) Give syntax of switch statement.
III) What is the output of the following.
<? php
$a="1E3 points of light" +1,
1
echo "$a",
?>
IV) What PHP can do?
V) Which function sorts the array by values in descending order?
SECTION: B
Q2) Answer the following questions.( any 5) [5x3=15]
I) Write a PHP program to calculate the area of a triangle with base = 3, height = 4.
II) Explain anonymous function with suitable example.
III) Explain the features of PHP.
IV) Give advantages and disadvantages of XML.
V) Explain the SSL term.
VI) How would you declare a class called emptyclass() that has no method or properties.
SECTION: C
Q3) Answer the following questions.(any 5) [5x4=20]
I) Write advantages and disadvantages of AJAX.
II) Explain the following functions of array with example in PHP :
(i) array_chunk( ) (ii) array_flip( ) (iii) array_intersect( ) (iv) array_values
III) How to handle file upload in php?
IV) Write a note on PEAR DB basics.
V) What is Codeigniter & why is it used for?
VI) Explain the SSL term.
VII) Write short notes on:
(i)Serialization (ii) Destructor (iii) Introspection (iv) Class
SECTION: D
Q4) Answer the following questions.(any 5) [5x5=25]
I) Explain MVC in CodeIgniter.
II) Write a note on AJAX php framework
III) Differentiate between for loop and For each loop.
IV) Write a PHP script to define an interface which has methods area( ), volume ( ). Define
constant PI. Create a class cylinder which implements interface methods and calculates area
and volume. Also declare an array of objects and call member functions area ( ) and volume ( ).
V) Write a menu driven program to perform the following operations on Associative arrays
(i) Find the union of two arrays.
(ii) Find the intersection of two arrays.
VI) Write a short note on the session.
VII) Explain the purpose and syntax of the following functions:(1 per function)
(i) mysql_connect() (ii) mysql_close() (iii) mysql_query()
(iv) mysql_result() (v) mysql_num_rows()