CA-304 PHP (BBACA) || Question Bank

CA-304 PHP (BBACA) || Question Bank





2 Marks Questions 

Q.1. What is variable? 

Q.2. What is string? 

Q.3. What is array? 

Q.4. Define types of array. 

Q.5. What is data types? 

Q.6. What is a conditional statement? 

Q.7. What is loop? Q.6. Give syntax for do... while loop. 

Q.8. What is function?

Q.9. What is object? 

Q.10. Explain syntax for function passing values by reference. 

Q.11. What is GET? 

Q.12. What is POST? 

Q.13. What is the use of <form> tag? 

Q.14. What is the use of <input> tag?  

Q.15. Write a short note on POST method. 

Q.16. Difference between GET and POST method. 

Q.17. Difference between $_GET and $_POST variable. 

Q.18. Write a short note on GET method. 

Q.19. Write a short note on POST method. 

Q.20. What is difference between client side validation and server side validation? 

Q.21. Explain parameters of mail () function. 

Q.22. What is use of mail (). 

Q.23. What is validation? 

Q.24. What is difference between session and cookie? 

Q.25. How to create cookie? 

Q.26. What is use of mysql_query() function? 

Q.27. Give the syntax of update command. 


 

 



4 Marks Questions 

Q.1. Write a short note on data types in php. 

Q.2. Write a short note on arrays. 

Q.3. Explain indexed array with suitable example, 

Q.4. Explain associative array with suitable example, 

Q.5. Write a difference between indexed array and associate array.

Q.6. Write a short note on arrays. 

Q.7. Explain indexed array with suitable example. 

Q.8. Explain associative array with suitable example. 

Q.9. Write a short note on function in php. 

Q.10. Write a short note on types of function. 

Q.11. Explain function with suitable example. 

Q.12. Explain built in function with suitable example. 

Q.13. Explain any five built in function. 

Q.14. Write a short note on GET method. 

Q.15. What is Validation? Explain with example. 

Q.16. Write Short note on Email Sending rules. 

Q.17. Explain radio button with suitable example.

Q.18. Explain checkbox with suitable example. 

Q.19. Explain mail() function with suitable example. 

Q.20. How to add elements into list box using suitable example. 

Q.21. What is Session? Explain with an example. 

Q.22. Write short note on File Security. 

Q.23. How to protect online file 

Q.24. Explain session variable and various session functions. 

Q.25. Explain cookies and cookies functions. 

Q.26. What is MySql? Explain its Features.. 

Q.27. Write short note on my phpadmin 

Q.28. Explain the steps for opening mysql.




4 Marks Programs 

Q.1. Write a program in php to design a login screen(fields: username and password) 

Q.2. Write a program in php to calculate addition of two numbers using $_GET variable. 

Q.3. Write a program in php to calculate area of rectangle using $_POST variable 

Q.4. Write a program to design a screen for student registration (rollno, name, address, Mobileno, gender). 

Q.5. Write a program to design a screen for doctor registration (docid, name, address, Mobile no, gender, hospital name) with validation. 

Q.6. Write a program in php to check whether the given no is Armstrong or not using reserving user input for number.

Q.7. Write a program in php to understand data types in php. 

Q.8. Write a program in php to calculate addition of two numbers. 

Q.9. Write a program in php to calculate sum of digits of a given number.

Q.10. Write a program in php to swap any two numbers using function passing values by reference.

Q.11. Write a php code for to delete a session values. 

Q.12. Write a php code for to fetch a session values. 

Q.13. Write a program in php to calculate area of rectangle using $_POST variable 

Q.14. Write a program to design a screen for student registration (rollno, name, address, Mobileno, gender). 

Q.15. Write a program to design a screen for doctor registration (docid, name, address, Mobile no, gender, hospital name) with validation. 

Q.16. Write a program in php to check whether the given no is Armstrong or not using reserving user input for number.




PHP imp questions for exam

Post a Comment

0 Comments