PHP (4th) May2019 PDF
PHP (4th) May2019 PDF
PHP (4th) May2019 PDF
of Pages : 02
Total No. of Questions : 07
B.Sc.(IT) (2015 & Onwards) (Sem.–4)
PROGRAMMING IN PHP
Subject Code : BSIT-401
M.Code : 74083
Time : 3 Hrs. Max. Marks : 60
INSTRUCTIONS TO CANDIDATES :
1. SECTION-A is COMPULSORY consisting of TEN questions carrying T WO marks
each.
2. SECTION-B contains SIX questions carrying TEN marks each and students have
to attempt any FOUR questions.
SECTION-A
1) Answer briefly :
o m
.r c
a) What are the basic DML commands?
p e
b) PHP is server side language or client side language? Explain your answer.
m
a
c) Write the connectivity string in PHP with Mysql database.
o
r p .r c
d) Which operator is used to check the data types of the variables, whether they are same
or not?
b p e
e) Differentiate between session and cookie.
p a
r
f) How to retrieve a value from textbox in PHP on click event of button?
b
g) What is WYSIWYG?
1|M - 7 4 0 8 3 (S3)-633
SECTION-B
2) Write a PHP script which takes the username, password and e-mail values from user and
checks whether the user has filled the textboxes or not. Also, check the e-mail field
whether it is incorrect format or not.
3) Write a function that interchange and prints the value of two integers A and B without
using any extra variable.
5) How to save the user's data in file? Also, write a program on it?
o m
.r c
p e m
a o
r p .r c
b p e
p a
b r
NOTE : Disclosure of Identity by writing Mobile No. or Making of passing request on any
page of Answer Sheet will lead to UMC against the Student.
2|M - 7 4 0 8 3 (S3)-633