You are on page 1of 2

Seat No:______________ Enrollment No:______________

PARUL UNIVERSITY
FACULTY OF IT & COMPUTER SCIENCE
BCA/B.Sc.(IT)/IMCA(A.Y.-IV) Winter 2023-24 Examination

Semester:02/03 Date: 03/11/2023


Subject Code:05101204/05102159/05301157 Time: 10:30am to 1:00pm
Subject Name: Open Source Technology using PHP Total Marks: 60
Instructions:
1. All questions are compulsory.
2. Figures to the right indicate full marks.
3. Make suitable assumptions wherever necessary.
4. Start new question on new page.

Q.1 Answer the following. (15) CO PO Bloom’s


Taxonomy
(A) 1. Explain Web server. (05) 3 2 5
2. What is Query String? 1 1 1
3. Explain CMS. 2 2 3
4. Array index always start from __________ index value. 4 1 2
5. Explain .htaccess file. 3 2 5
(B) 1. Variable name in PHP starts with (10) 1 2 2
A)! (Exclamation) B) $(Dollar)
C) &(Ampersand) D) #(Hash)
2. Which of the following is not a variable scope in PHP? 3 1 3
A) Extern B) Local
C) Static D) Global
3 2 2
3. Which of the following is used to display the output in PHP?
A) echo B) write
A. C) print D) Both (a) and (c)
B.
3 2 2
4. Which of the following is used for concatenation in PHP?
A) + (plus) B) *(asterisk)
C. C) .(dot) D) append()
3 2 1
5. Which of the following starts with __ (double underscore) in PHP?
A) Inbuilt constants B) User defined constants
D. C) Magic constants D) Default constants

6. Which of the following is the correct way of defining a variable in PHP? 2 3 2


A) $variable name = value; B) $variable_name = value;
C) int $variable_name = value; D) $variable name as value;

7. Which of the following is the correct way to open the file "sample.txt" as 2 3 1
readable?

A) fopen(“sample.txt”,”r”); B) fopen(“sample.txt”,”r+”);
C) fopen(“sample.txt”,”read”); D) fopen(“sample.txt”);

8. Which of the following function displays the information about PHP and 3 2 3
its configuration?
A) php_info() B) phpinfo()
C) info() D) None of the above
9. Which of the following function is used to set cookie in PHP? 2 3 2
A) createcookie() B) makecookie()
C) setcookie() D) None of this

10. Which of the following function is used to sort an array in descending


order?
A) sort() B) assort() 3 2 1
C) dsort() D) rsort()

Q.2 Answer the following. (Attempt any FIVE). (15)


1. Difference between client side and server side scripting. 2 1 1
2. Explain PHP variable and its scope. 3 3 5
3. Explain MySQL data types . 4 3 5
4. Explain Constructor and Destructor. 4 3 5
5. Explain Jquery Selectors. 3 3 5
6. Advantages of CMS. 3 2 3

Q.3 Attempt any THREE. (15)


1. Explain class and object in PHP with example. (05) 2 3 5
2. Explain types of array. (05) 3 3 5
3. Different between session and cookie. (05) 2 3 5
4. Explain array_push(), array_pop() and array_shift() with example. (05) 4 3 5

Q.4 Answer the following. (15)


(A) Explain file uploading with example. (05) 4 4 5
(B)(1) Explain conditional structure in PHP. (05) 4 4 5
(B)(2) Explain how AJAX works with PHP. (05) 3 4 5
OR
(B)(1) Explain looping structure in PHP. (05) 2 5 3
(B)(2) Explain Abstract class and methods. (05) 4 4 5

You might also like