Web Scripting using PHP.pdf - Google Drive

0 downloads 62 Views 91KB Size Report
m) Give full name of : WAMP 01. n) Explain die() function in php. 01 ... 04. Page 3 of 3. Main menu. Displaying Web Scri
Enrollment No: _______________________

Exam Seat No:_______________________

C.U.SHAH UNIVERSITY Winter Examination-2015 Subject Name : Web Scripting using PHP Subject Code : 4CS02BPH1

Branch : BCA

Semester : II Date :21/11/2015 Time :10:30 To 1:30 Marks : 70 Instructions: (1) Use of Programmable calculator & any other electronic instrument is prohibited. (2) Instructions written on main answer book are strictly to be obeyed. (3) Draw neat diagrams and figures (if necessary) at right places. (4) Assume suitable data if needed. Q-1

Attempt the following questions:

(14)

a)

Which function is used to select database in mysql?

01

b)

Explain: Web Browser.

01

c)

AJAX means _____________Javascript and________

01

d)

Write any two variable length argument function in php

01

e)

PHP files have a default file extension of..

01

a) .html f)

b) .xml

c) .php

What does PHP stand for?

01

i) Personal Home Page ii) Hypertext Preprocessor iii) Pretext Hypertext Processor iv) Preprocessor Home Page

g)

d) .ph

a) Both i) and iii)

b) Both ii) and iv)

c) Only ii)

d) Both i) and ii)

Who is the father of PHP? a) Rasmus Lerdorf b) Willam Makepiece c) Drek Kolkevi Page 1 || 3

d) List Barely h)

Which function is used to set cookie in php.

01

i)

Give syntax of fread().

01

j)

asort() function is used for?

01

k)

What is abstract class?

01

l)

Write name of PERL regular expression function used in php?

01

m) Give full name of : WAMP n)

01

Explain die() function in php.

01

Attempt any four questions from Q-2 to Q-8

Q-2

Attempt all questions a.

Write a note on PHP data types.

05

b.

Explain: HTTP, HTTPS, FTP, ISP and DNS

05

c.

Explain static and global variable in php.

04

Q-3

Q-4

(14)

Attempt all questions

(14)

a.

Write a program that check whether given number is even or odd

05

b.

Explain User Define Function in PHP with Example

05

c.

Explain: gettype(), settype(), print_r(), isset() functions in php

04

Attempt all questions

(14) Page 2 || 3

a.

Explain types of Arrays in PHP.

07

b.

Write a program that perform following arithmetic operation in php

07

Q-5

Attempt all questions

(14)

a.

What is jquery? How it is work? Write jquery syntax.

05

b.

What is class? How to create class and object in php.

05

c.

Explain: mysql_connect(), mysql_close(), mysql_query(), mysql_select_db()

04

functions. Q-6

Attempt all questions

(14)

a.

Write a note on PHP file upload.

07

b.

Explain: AJAX XMLHttpRequest.

07

Q-7

Attempt all questions a.

(14)

Write a program that insert record into book table using form. Enter book details

07

from user. (field: book_id, book_name,book_price, book_author) b.

Q-8

Write a program that demonstrate how to send data in php using AJAX.

Attempt all questions

07

(14)

a.

Write a note on PHP Sessions.

05

b.

Explain any five array functions in php.

05

c.

Explain any four file handling functions in php.

04

Page 3 || 3