Web Development Using PHP,MYSQL-2.pdf - Google Drive

1 downloads 86 Views 488KB Size Report
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to op
Enrollment No:-___________

Exam Seat No:-________

C.U.SHAH UNIVERSITY Summer-2015

Subject Code: 4CS03BPH2 Subject Name: Web Development Using PHP,MYSQL-2 Course Name: BCA Date: 7/5/2015 Semester:III Marks: 70 Time:02:30 TO 05:30 ___________________________________________________________________________________ Instructions: 1) Attempt all Questions of both sections in same answer book/Supplementary. 2) Use of Programmable calculator & any other electronic instrument prohibited. 3) Instructions written on main answer book are strictly to be obeyed. 4) Draw neat diagrams & figures (if necessary) at right places. 5) Assume suitable & perfect data if needed. ___________________________________________________________________________________

SECTION-I Q. 1

Answer the below questions in one or two lines. [a] What will be output of follow code:

02

02

[b] What will be output of follow code:

02 01

[c] What is the difference between include and require? [d] What is the use of STRSTR( ) function in PHP? Page 1 of 3 7-5

Q. 2

[a] Explain the ternary conditional operator in PHP.

04

[b] What is the difference between the functions unlink and unset?

05

[c] Explain DNS in detail.

05 OR

Q. 2

[a] Differentiate print and echo statement by example.

04

[b] Write note on branching structure.

05

[c] What is user defined function? Write user defined function SUM(a, b) to do

05

the sum of two values and print the output using echo. Q. 3

[a] Explain: HTTP, HTTPS, FTP, ISP.

04

[b] Explain string function by example: chr, ord, strlower, trim, strlen.

05

[c] Explain math function by example: abs, round, min, sqrt, pow.

05

OR Q. 3

[a] Explain mysql_query( ) by example

04

[b] Differentiate between mysql_fetch_row( ), mysql_fetch_array( ).

05

[c] Write PHP script to opening a file, write some texts to a file and display the

05

contents of the file in browser. SECTION-II Q. 4

Q. 5

Answer the below questions in one or two lines. [a] What is abstract class?

02

[b] Differentiate $data vs. $$data in PHP.

02

[c] List the MySQL functions used as aggregate functions.

02

[d] How do you define a constant?

01

[a] Write down steps to create database, create table using phpMyAdmin.

04

[b] Explain: mysql_connect( ), mysql_close( ) and mysql_select_db( ) by

05

example.

05

[c] What is inheritance? How it can be implemented in PHP? OR Q. 5

Q. 6

[a] How jQuery can be created and include in PHP script?

04

[b] Write the code to upload images to the specific folder using PHP.

05

[c] What is AJAX? Explain AJAX Request and Response by example.

05

[a] What are constructors and destructors? Explain by example.

04

[b] List the various array functions supported by PHP? Explain any three in

05

Page 2 of 3 7-5

details.

05

[c] Differentiate between $_GET & $_POST. OR Q. 6

[a] Explain looping statements in detail.

04

[b] What is tag in HTML? How HTML form can be implemented with

05

PHP?

05

[c] Write PHP script to send the email.

Page 3 of 3 7-5