Web Programming Using PHP Oct 2021

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

QP CODE: 21103003 21103003 Reg No : .....................

Name : .....................

B.Sc/BCA DEGREE (CBCS) EXAMINATIONS, OCTOBER 2021


Fourth Semester
Core Course - CS4CRT11 - WEB PROGRAMMING USING PHP
(Common for B.Sc Computer Applications Model III Triple Main, B.Sc Computer Science Model III,
B.Sc Information Technology Model III, Bachelor of Computer Applications)
2019 Admission only
60C7101D
Time: 3 Hours Max. Marks : 80
Part A
Answer any ten questions.
Each question carries 2 marks.

1. What is a web page?

2. How do you insert a comment in HTML?

3. Which tag is used to set the caption of a table? Write the syntax.

4. Using Switch-Case write Javascript code to display the name of day for a numeric
input(eg. 1- Sunday, 2-Monday, ….)

5. How functions and methods differ in JavaScript?

6. Name any four form events.

7. What is PHP?

8. How single line comments are used in PHP?

9. What is the peculiarity of $_REQUEST[…] ?

10. Define constructor.

11. Which are the primary categories of datatypes in MySql?

12. How can we find the number of fields in a recordset or query?


(10×2=20)
Part B
Answer any six questions.
Each question carries 5 marks.

Page 1/2 Turn Over


13. Write short note on atributes of tag

14. Write the importance of type atribute of tag. Give examples.

15. Differentiate internal and external CSS.

16. Discuss CSS Text properties in detail.

17. Explain operators in PHP.

18. Explain the syntax of for-each loop with a sample PHP code.

19. Explain how cookies are created and accessed in PHP?

20. Which are the different methods used for logging errors?

21. Compare the DELETE, DROP and TRUNCATE statements.


(6×5=30)
Part C
Answer any two questions.
Each question carries 15 marks.

22. Write notes on different JavaScript built in objects.

23. a) Write a PHP program to sort an array. b) Write a PHP program to find the factorial of a
number.

24. Explain in detail about string and array functions used in PHP with suitable examples.

25. Demonstrate the working of mysql_connect(), mysql_query(), mysql_fetch_array(), with


the help of an example.
(2×15=30)

Page 2/2

You might also like