,s
"1r'
Total No. of Questions : 5l
SEAT No. :
P1302 [Total No. of Pages : 2
[60551-303 I
T.Y.B. Sc. (Co,f-q$uter Science)
CS - 353 : WEB {ECHNOLOGIES - I
(2049'?attrrn) (Semester - V)
i''1'4, f'
Time:2 Hoursl .r'\+".-',
i"L!
rr'rr!_':
.,. 1 t: [Max. Marks : 35
Instructians to the candidqfes: (:,-'
1) All questinnfr{iffi ca hory. B!
2) Figures ta@fu"hght indicate full marks.
'1
'TY*t:
1l
";"-
T},
...i.- '{ ",qr
'
QI) Attemfu,.gpy EIGHT of the following (out of TEN). [8x1=8]
a) What afe compound data types in PIIP?
b) Write s*ntax to define a constant in PIIP. t1
c) Wti#'is use of CSS selectors?
d) What is Lambda function? .,^*. ;i;/
e) Which function read the data frffi-$l=es*11iith the assumption that it is
properly formatted in CSV andffi dat$,ifito an array?
0 Write a name of function trrgffiles-ffiu to print thl contents of a file
without even having to callfubn 0"5tr
What is use of SMTP coffierqMuil Transfer Agenr?
"g) h) What is use of Post Offi#?rot6cbt :Z
0 What is use array-flipffimr".riiiiit
, Which function is ufuto"re$fuition the file pointer to the beginning of the
file?
--tts
"; "1
Q2) Attempt any FOUR of rhe$ollowing (our of FTVE). [4 X'?'= 8l
a) Explain List inHTML. tu*+w" ,;.a;'
b) What is Casting of operators? u{k-' ,-0*.f'
c) Find the Output. #'": '-.-*
<?php ,*.*:'' ,:{,i)-
$subjects - arrray ('physics', 'chem', 'math', 'h{ffi'cs'offirou'1.
$ rl = ar-ray splice ($subjects,2,3); -_"Y "l.t
-
print-r($subjects); *
ry -4*.
b ,. T..*- t,:"
d) Explainfollowingfunctions. Lu,u.-/" ,;'='"
ro',"
r) var-dump0
r\/
ii) TrimQ ..,l''r'
1*
e) '"Eefine the types of web pages?
PTO.
\
Q3) Attempt any TWO of the following (out of THREE). [2 x 4 = g]
a) Explain features of PHP.
b) Explain any two control statentdlits with syntax and example.
c) Explain the following functions with example.
ii) implode {),ui+ "i
l.,[Link]:* ,;1,,.'
Q4) Attempt any ry,,p the-?oilowing (our of THREE). [2 x 4 = Bl
a) Program tu checlirwhether the enter number is Palindrome or not
( ftom u s er) .
A cc ep_f E[mb ei'
b) Wrilp *'-PH{program to-sort affay on marks (Array contains names and
c) iqn*ioe, the following relational database: Movie (Movie-no,
Movie-name, ryear).
Write,f,PHe script which displays all movies released in the year
20rfi'. "*tlb
.::'1
:'1
"^ .. ,1
p5) Attempt any ONE of the following logt gf TWO): [1 x3=3]
a) Explain with example PEAR DB"ldicq.
*t ",,'
b) Exptain mail$ function with syfrrax.
,.
=l.")*j .'i;\-
+g+ "*'t':P'*&*' ^t",*'
: ..,J.!
'' bn
;**
{r,,*"tn
,r,}.
d.,,
.:/ e'i
,4,
'n.
!l
:=
'l "1
1.. "", ''
[60ss]-303
Total No. of Questions : 5] SEAT No. :
P5151 [Total No. of Pages : 3
[5823]-503
T.Y. [Link].
COMPUTER SCIENCE
CS - 353 : Web Technologies - I
(CBCS) (2019 Pattern) (Semester - V)
Time : 2 Hours] [Max. Marks : 35
Instructions to the candidates:
1) All questions are compulsory.
2) Assume suitable data, if necessary.
3) Neat diagrams must be drawn wherever necessary.
Q1) Attempt any eight of the following : [8 × 1 = 8]
a) What is hyperlink?
b) List the advantages of CSS
c) Which tag is used to set the text in superscript format?
d) State the purpose of pathinfo()
e) What is DSN?
f) List any two features of HTTP protocol.
g) State the use of foreach() function.
h) What is web server?
i) Give any two functions of random access of file data.
j) How to delete file in PHP?
Q2) Attempt any four of the following : [4 × 2 = 8]
a) Write any 2 features of PHP & HTML.
b) Write the output of the following PHP Script
<?php
$ age = array("Anna"=>"45", "Julie"=>"38", "Benne"=>"53");
usort($age);
print_r($age);
?>
P.T.O.
c) Write the output of the following script?
<?php
$a='PHP';
$b='$a interpolation ';
echo $b;
?>
d) Write the output of the following PHP Script.
$str=' abc,pqr,lmn,xyz';
$p=explode(',',$str,3);
print_r($p);
e) What is the output of the following?
<?php
$p=array(1,2,3,4,5);
$q=array(1,3,5,7,9);
$s=array_diff($p,$q);
print_r($s);
?>
Q3) Attempt any 2 of the following : [2 × 4 = 8]
a) Design HTML form that will accept user input as first name, middle
name and last name, address, contact number. Provide buttons to submit
the input as well as to refresh form.
b) Explain any two of the following functions with syntax
i) array _ intersect ()
ii) array _ slice ()
iii) shuffle ()
c) Explain how to send email with PHP.
Q4) Attempt any 2 of the following : [2 × 4 = 8]
a) Explain different types of arguments passing to function with example.
[5823]-503 2
b) Write a PHP script to read a file [Link] where file contains character,
B,C,T,G and space. Count occurrences of each character and write it
to the [Link] file.
c) Explain advantages and disadvantages of IMAP4 protocol.
Q5) Attempt any ONE of the following : [1 × 3 = 3]
a) Write a PHP script accept and insert records in employee table.
b) What is associative array? Explain with example how is it different from indexed
array?
[5823]-503 3
Total No. of Questions : 5] SEAT No. :
PA-1025 [Total No. of Pages : 2
[5902]-53
T.Y. [Link] (Computer Science)
WEB TECHNOLOGIES - I
(2019 Pattern) (Semester - V) (CS-353)
Time : 2 Hours] [Max. Marks : 35
Instructions to the candidates:
1) All questions are compulsory.
2) Figures to the right indicate full marks.
Q1) Attempt any Eight of the following (out of Ten) [8 × 1 = 8]
a) Which tag is used to set the text in Superscript format?
b) Explain the use of <Style>
c) What is difference between echo ( ) and print ( ) function?
d) Which construct is used to define an array?
e) How to create a directory in PHP?
f) Explain any two directory functions.
g) What is a DSN?
h) Which protocols are used to retrieve mail from server?
i) How to convert an object to array?
j) Explain SMTP Protocol.
Q2) Attempt any FOUR of the following (out of Five) [4 × 2 = 8]
a) Differentiate between single quoted string and double quoted string.
b) How External CSS is used?
c) Write any two functions of decompose string with suitable example.
d) How to find out the position of the first occurrence of a substring in a
string?
e) What is the purpose of array_splice ( ) function?
P.T.O.
Q3) Attempt any TWO of the following (out of Three) [2 × 4 = 8]
a) Discuss the Scope of a Variable in PHP with an example
b) Explain prepare ( ) and execute ( ) command in database handling
c) Explain the functions used for reading and writing characters in files.
Q4) Attempt any TWO of the following (out of Three) [2 × 4 = 8]
a) Design HTML form that will accept user input of user name, Address,
provide buttons to submit the input as well as to refresh it.
b) Write PHP Script to accept associative array and sort in descending
order. Display sorted array to user.
c) Accept directory name from user. Write PHP program to change current
directory to accepted directory name and count number of files and
directories in it.
Q5) Attempt any ONE of the following (out of Two) [1 × 3 = 3]
a) Explain terms HTTP request and HTTP response.
b) Explain the concept of missing parameters to a function with suitable
example.
[5902]-53 2
Total No. of Questions : 5] SEAT No. :
P6392 [Total No. of Pages : 3
[6155]-53
[Link].
COMPUTER SCIENCE
CS-353 : Web Technologies - I
(2019 Pattern) (Semester - V) (CBCS)
Time : 2 Hours] [Max. Marks : 35
Instructions to the candidates:
1) All questions are compulsory.
2) Figures to the right indicate full marks.
Q1) Attempt any EIGHT of the following. [8×1=8]
a) Which HTML tag is used to create hyperlink?
b) Define Web Browser.
c) What is the use of = = and = = =operators in PHP?
d) Which keyword is used for creating a function?
e) How to check if given variable is array or not.
f) How to read file in PHP?
g) What is POP3?
h) What is associative array?
i) What is use fileatime() function?
j) Which function is used to get a file name out of a file path?
Q2) Attempt any FOUR of the following. [4×2=8]
a) Find the Output
<?php
$city= ‘pune’;
$string = ‘I like $city very much!’;
echo $string;
?>
P.T.O.
b) Find the Output
<?php
$file=fopen(“[Link]”, “w”);
echo fwrite($file, “Hello! How are you Rahul?”);
fclose($file);
?>
c) Find output of following code:
<?php
$a= “1E3 points of light” + 1;
var_dump($a);
?>
d) What is use of var_dump( ) function?
e) What is use of mail( ) function? Give syntax of it.
Q3) Attempt any TWO of the following. [2×4=8]
a) Explain two syntax and proper example of for each loop.
b) Explain types of strings in PHP.
c) How to get array of keys and array of values from an associative
array? Explain with proper example.
[6155]-53 2
Q4) Attempt any TWO of the following. [2×4=8]
a) Create HTML form for accepting employee number, name, age,
gender. Use proper controls of HTML.
b) Write a PHP program to read two arrays of integer values merge
two arrays and display only unique values in it.
c) Consider the following relational database: student (rollno, name,
age) and marks (rollno, mark1, mark2, mark3, total, per). Write a
PHP script which display rollno, name, mark1, mark2, mark3, total
and percentage in tabular format.
Q5) Attempt any ONE of the following. [1×3=3]
a) What is use of pg_fetch_row( ) and pg_fetch_array( ).
b) What are the different types of CSS?
[6155]-53 3