0% found this document useful (0 votes)
68 views

Se241 Web Tech Lab

This document provides a question bank for a practical exam on Web Technology lab for a B.Sc. in Computer Science. It includes 28 questions divided into parts (a) and (b). The questions involve writing PHP programs and retrieving/manipulating data from XML and MySQL databases. Instructions are provided to examiners on selecting questions randomly and distributing them to ensure students do not receive the same questions.

Uploaded by

mahalakshmis
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
68 views

Se241 Web Tech Lab

This document provides a question bank for a practical exam on Web Technology lab for a B.Sc. in Computer Science. It includes 28 questions divided into parts (a) and (b). The questions involve writing PHP programs and retrieving/manipulating data from XML and MySQL databases. Instructions are provided to examiners on selecting questions randomly and distributing them to ensure students do not receive the same questions.

Uploaded by

mahalakshmis
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

APRIL 2022 50436(P)/SE241

(For Candidates admitted from 2020-2021)


Question Bank — Practical Examination
B.Sc. DEGREE COURSE IN COMPUTER SCIENCE
Choice Based Credit System
Core Practical IV – Fourth Semester
PRACTICAL IV - (WEB TECHNOLOGY LAB)
Time : Three hours Maximum : 60 marks
Question Bank is provided by the University for the candidates
admitted from the academic year 2020-2021 for B.Sc. (Computer
Science). Degree Practical Examinations. The Principal/Chief
Superintendent/Examiners are requested to read the given
instruction carefully and strictly adhere to the same at the time
of conducting the practical examinations.

INSTRUCTIONS TO THE PRINCIPAL/CHIEF


SUPERINTENDENT/EXAMINERS
1. Select the questions from the Question Bank provided by the
University on the basis of students strength.
2. Not more than three candidates should get the same question in
a batch
3. Each question must be separated from the selected questions
from the Question Bank and should be pasted on the answer
paper in such a way that each answer paper is pasted with only
one question.
4. The answer paper pasted with question must be displayed,
without showing the questions to the students. The Students
should only one answer paper pasted with question and do the
practical.
5. Selected questions from the Question Bank should be used in
each batch consisting of maximum 30 students. Arrangements
may kindly be made to take required number of copies of the
questions at the college.
6. No question must be prescribed by the examiner other than the
selected questions from the question bank provided by the
University for the B.Sc.(Computer Science) practical
examinations.
7. After selecting the questions, the Question Bank should be
handed over to the Principal at once. The Principal are asked to
keep the Question Bank, which is a permanent record, under
safe custody and to utilize when conducting the practical
examinations of the subject concerned.
1. (a) Write a PHP program which adds up columns and rows of
given table.
(b) From an XML document (email.xml), write a program to
retrieve and print all the e-mail addresses from the
document using XML.

2. (a) Write a PHP program to compute the sum of first n given


prime numbers.
(b) From an XML document (tree.xml), suggest three different
ways to retrieve the text value ‘John using the DOM.

3. (a) Write a PHP program to find valid an email address.


(b) Write a program that connects to a MySQL database and
retrieves the contents of any one of its tables as an XML
file. Use the DOM.

4. (a) Write a PHP program to convert a number written in


words to digit.
(b) From a XML document (email.xml), write a program to
retrieve and print all the e-mail addresses from the
document using XML.

5. (a) Write a PHP script to delay the program execution for the
given number of seconds.
(b) From an XML document (tree.xml), suggest three different
ways to retrieve the text value ‘John’ using the DOM

6. (a) Write a PHP script to read the current directory and return
a file list sorted by last modification time. (using
filemtime())
(b) Write a program that connects to a MySQL database and
retrieves the contents of any one of its tables as an XML
file. Use the DOM.

7. (a) Write a PHP code to create a student mark sheet table.


Insert, delete and modify records.
(b) From an XML document (tree.xrnl), suggest three different
ways to retrieve the text value ‘John’ using the DOM.

2 50436(P)/SE241
8. (a) From an XML document (email.xml), write a program to
retrieve and print all the e-mail addresses from the
document using XML.

(b) Write a program that connects to a MySQL database and


retrieves the contents of any one of its tables as an XML
file. Use the DOM.

9. (a) From an XML document (tree.xml), suggest three different


ways to retrieve the text value ‘John’ using the DOM.

(b) Write a program that connects to a MySQL database and


retrieves the contents of any one of its tables as an XML
file. Use the DOM.

10. (a) Write a program that connects to a MySQL database and


retrieves the contents of any one of its tables as an XML
file. Use the DOM.

(b) Write a PHP script, which changes the colour of the first
character of a word.

11. (a) Write a PHP program to find multiplication table of a


number.

(b) From an XML document (email.xml), write a program to


retrieve and print all the e-mail addresses from the
document using XML.

12. (a) Write a PHP program to calculate Factorial of a number.

(b) From an XML document (tree.xml), suggest three different


ways to retrieve the text value ‘John’ using the DOM

13. (a) Write a PHP script to read a file, reverse its contents, and
write the result back to a new file.

(b) Write a program that connects to a MySQL database and


retrieves the contents of any one of its tables as an XML
file. Use the DOM.

3 50436(P)/SE241
14. (a) Write a PHP script to look through the current directory
and rename all the files with extension .txt to extension
.xtx.

(b) From an XML document (email.xml), write a program to


retrieve and print all the e-mail addresses from the
document using XML.

15. (a) From an XML document (tree.xml), suggest three different ways
to retrieve the text value ‘John’ using the DOM.
(b) Write a PHP program to compute the sum of first n given prime
numbers.

16. (a) From an XML document (email.xml), write a program to retrieve


and print all the e-mail addresses from the document using XML.
(b) Write a PHP program which adds up columns and rows of given
table.

17. (a) Write a program that connects to a MySQL database and


retrieves the contents of any one of its tables as an XML file. Use
the DOM.
(b) Write a PHP program to find valid an email address.

18. (a) From an XML document (email.xml), write a program to retrieve


and print all the email addresses from the document using XML.
(b) Write a PHP program to convert a number written in words to
digit.

19. (a) Write a program that connects to a MySQL database and


retrieves the contents of any one of its tables as an XML file. Use
the DOM.
(b) Write a PHP script to read the current directory and return a file
list sorted by last modification time. (using filemtime())

20. (a) From a XML document (tree.xml), suggest three different ways
to retrieve the text value ‘John using the DOM

(b) Write a PHP script to delay the program execution for the
given number of seconds

21. (a) From an XML document (tree.xml), suggest three different


ways to retrieve the text value ‘John’ using the DOM.
(b) Write a PHP code to create a student mark sheet table.
Insert, delete and modify records.

4 50436(P)/SE241
22. (a) Write a program that connects to a MySQL database and
retrieves the contents of any one of its tables as an XML
file. Use the DOM.
(b) From an XML document (email.xml), write a program to
retrieve and print all the e-mail addresses from the
document using XML

23. (a) Write a PHP script, which changes the colour of the first
character of a word.
(b) Write a program that connects to a MySQL database and
retrieves the contents of any one of its tables as an XML
file. Use the DOM.

24. (a) From an XML document (tree.xml), suggest three different


ways to retrieve the text value ‘John using the DOM
(b) Write a program that connects to a MySQL database and
retrieves the contents of any one of its tables as an XML
file. Use the DOM.

25. (a) From an XML document (email.xml), write a program to


retrieve and print all the e-mail addresses from the
document using XML
(b) Write a PHP program to find multiplication table of a
number.

26. (a) Write a PHP program to find multiplication table of a


number.
(b) Write a program that connects to a MySQL database and
retrieves the contents of any one of its tables as an XML
file. Use the DOM.

27. (a) Write a PHP program to calculate Factorial of a number.


(b) Write a PHP script to read a file, reverse its contents, and
write the result back to a new file

28. (a) From an XML document (tree.xml), suggest three different


ways to retrieve the text value ‘John’ using the DOM.
(b) Write a PHP script to look through the current directory
and rename all the files with extension .txt to extension
.xtx.

5 50436(P)/SE241
29. (a) Write a PHP script to delay the program execution for the
given number of seconds.
(b) Write a PHP script, which changes the colour of the first
character of a word

30. (a) Write a PHP program to find valid an email address.


(b) Write a PHP program to convert a number written in
words to digit.

———————

6 50436(P)/SE241

You might also like