LOYOLA COLLEGE (AUTONOMOUS), CHENNAI – 600 034 B.Sc. DEGREE EXAMINATION – COMPUTER SCIENCE SIXTH SEMESTER – SUPPLEMENTARY – JUNE 2012 CS 6609/CA 6609 – WEB PROGRAMMING WITH PHP AND MYSQL Date : 27-06-2012 Time : 2:00 - 5:00 Dept. No. Max. : 100 Marks SECTION –A Answer ALL the Questions (10 x 2=20 marks) 1. What is PHP? List any two features of PHP. 2. Give any two naming rules for variables. 3. How will you create an array in PHP? 4. Define Cookies. 5. Define Database. 6. What is functional Dependency? 7. Write down any four data type in MySQL. 8. Write down the set operators in MYSQL. 9. What is the syntax for displaying date and time? 10. Write the syntax for throwing error message in PHP. SECTION – B Answer ALL the Questions (5 x 8=40 marks) 11. a) Explain the usage of switch case statement in PHP with example. (or) b) Write down the syntax of for and and for each with example. State the differences between them. 12. a) Write down the syntax and usage of user defined functions in PHP. (or) b) Explain the read and write operation of file on PHP with examples. 13. a) What are the features of DBMS? (or) b) Discuss about client server architecture with block diagrams. 14. a) Explain any four MySQL database types and its significance. (or) b) Explain in detail about the usage of aggregate functions, with example. 15. a) Explain the steps to connect MySQL databse with PHP, and perform DML operations. (or) b) Discuss about the error handling in PHP. SECTION -C Answer any TWO Questions (2 x 20=40 marks) 16. a) Explain in detail about the conditional statement available in PHP with examples. b) Explain in detail about PHP sessions. 17. a) State 2NF and 3NF with examples. b) Explain simple sub queries and correlated sub queries with example. 18. a) Write a PHP code to check the authentication of the user. b) Explain about file handling in PHP in detail. $$$$$$$