0% found this document useful (0 votes)
41 views3 pages

Adobe Scan 22 Mar 2024

1. The document is a question paper for the subject BCA-242: Web Technology. 2. It contains 4 questions covering topics related to web technologies like PHP, XML, arrays, cookies etc. 3. The questions are both short answer type and long answer type, testing the students' understanding of concepts and ability to write code snippets.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views3 pages

Adobe Scan 22 Mar 2024

1. The document is a question paper for the subject BCA-242: Web Technology. 2. It contains 4 questions covering topics related to web technologies like PHP, XML, arrays, cookies etc. 3. The questions are both short answer type and long answer type, testing the students' understanding of concepts and ability to write code snippets.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Total No.

of Questio ns: 4)
SEAT No. : I,....__ _ __,
Pl358 (Total No. of Pages : 3
160S8)-402
S.Y.B.C.A. (Science)
BCA-242 : WEB TECH NOLO GY
(2019Pattern) (Semester-IV)
Time: 3 Hours/ /Max. Marks: 70
Instructions to the candidates:
1) All questions are compulsory.
2) Neat diagram must be drawn wherever necessary.

QI) A) Choose the correct options. 1sxt=Sl


a) The___ _ function returns the column name

i) pg-field-name O ii) pg-col-nameO


iii) postgres-field-name () iv) none of these
b) By default the index of array in PHP statrs from

i) 0 ii)
iii) -1 iv) 2
c) Which of the following operator when added before an expression
ignores error messages?
i) @ ii) #

iii) % iv) A

d) XML comments are written as

i) <!-!> ii) <!--?


iii) <?-?> iv) <$---%>
e) Which one of the following property scopes is not supported by
PHP?

i) friendly ii) final


iii) public iv) static

P.T.O.
B) Answer the following : (Sxt=S)
a) List types of XML parser.
b) For what purpose table Info () method is used?
c) State True/False PHP $-GET[] is super global array in PHP.

I
d) How static method is invoked?
e) What is the use of array-slice function?

Q2) Answer the following (any five) (Sx3=15)


a) Explain how PHP works with web server.
b) Differentiate between anonymous function and normal function.
c) What is Introspection. Explain any two functions with example.
d) Explain SSL.
e) List the steps to write ajax code to retrieve. information from XML file
using PHP.
t) Write a PHP program to display the total no. of rows returned by a query
containing students studying in SYBCA class.

Q3) Answer the following (any five) (Sx4=20)


a) Explain the following PEAR DB to get information about result object
with example.
i) numrows ()
ii) numcols ()
b) Explain (Define) cookies. Give syntax for set cookie and explain the
cookie attributes in detail with example.
c) What are the differences between AJAX and JAVA script.
d) Compare between for and for each loop.
e) Write a program in PHPto find the size of array using count and size of()
function.
t) Explain what is HTTP authentication?
g) What are the placeholders in query? Explain in detail with example.

(6058)-402 2
Q4) Answer the following: (5x5=25)

a) Explain self processing pages concepts in detail with example.

b) Explain Encapsulation with its advantages .

c) Consider tables: Plant (Plant-id, plant-name, plant-type, price)

Write a PHP script to accept-plant-type. The script schould display the


information of plants belonging to the plant-type entered by user.

d) Create an application that reads Book. XML file into simple XML object.
Display attributes and elements (Hint: use simple-XML-load-file())

e) Explain the following array function, with example.

i) arr-pad ( )

ii) array-values ()

iii) range ( )

f) What is Sticky form? Explain with example.

g) Explain prepare and excecute functions with suitable example.

•••

(6058)-402 3

You might also like