Total No. of Questions : 5] SEAT No.
82
PD-508 [Total No. of Pages : 2
ic-
t
sta
[6468]-53
1
1:1
T.Y.B.Sc. (Computer Science)
1
3:2
CS-353 Web Technologies- I
4/2 21
51
(2019 Pattern ) (Semester - V)
2/0 10
02
0
Time : 2 Hours] [Max. Marks : 35
9.8 AP
Instructions to the candidates :
49 CA
21
1) All questions are compulsory.
82
2) Figures to the right indicate full marks.
ic-
.21
tat
1s
Q1) Attempt any Eight of the following. [8 × 1 = 8]
2.1
1:1
11
a) What is Lambda function?
20
3:2
02
51
b) Which function read the data from files with the assumption that it is
02
01
properly formatted in csv and puts data into an array?
4/2
AP
c) Write a name of function that enables you to print the contents of a file
2/0
without even having to call fopen().
CA
21
2
c-8
9.8
d) What is use of SMTP component, Mail Transfer Agent?
i
.21
tat
e) What are compound data types in PHP?
1s
49
2.1
1:1
f) Write syntax to define a constant in PHP.
11
20
3:2
02
51
g) What is use of CSS selectors?
02
01
h) What is use of Post Office Protocol 3?
4/2
AP
2/0
i) What is use array_flip() function?
CA
21
j) Which function is use to reposition the file pointer to the beginning of the
9.8
file?
.21
49
P.T.O.
2.1
20
Q2) Attempt any Four of the following. [4 × 2 = 8]
82
a) Explain following functions
ic-
i) var_dump()
t
sta
ii) Trim()
1
b) Define the types of web pages?
1:1
1
c) Explain List in HTML.
3:2
4/2 21
d) What is Casting of Operators?
51
2/0 10
e) Find the Output
02
<?php
0
9.8 AP
$a1=array("a"=>"red","b"=>"green","c"=>"blue","d"=>"yellow");
$a2=array("a"=>"purple","b"=>"orange"),
49 CA
21
82
array_splice($a1, 0, 2, $a2);
ic-
print_r($a1);
.21
tat
?>
1s
Q3) Attempt any Two of the following. [2 × 4 = 8]
2.1
1:1
a) Explain features of PHP.
11
20
3:2
b) Accept number from user and check number is perfect number or not
02
51
using function.
02
01
c) Explain the following functions with example
4/2
AP
i) implode()
2/0
ii) explode()
CA
21
2
c-8
9.8
Q4) Attempt any Two of the following. [2 × 4 = 8]
i
.21
tat
a) Write PHP program that accept file in csv format and display its content.
1s
49
b) Write a PHP program to sort array on marks, (Array contains names and
2.1
1:1
marks).
11
20
3:2
c) Assume database EmpDb is already exists. Write a PHP script using
02
Postgres to increment salary of all employees by 10%. Consider table
51
emp(no, ename, salary).
02
01
4/2
AP
Q5) Attempt any one of the following. [1 × 3 = 3]
2/0
a) Explain with example PEAR DB basics.
CA
21
b) Explain mail() function with syntax.
9.8
.21
49
2.1
[6468]-53 2
20