Question Bank For Sum Exam
Question Bank For Sum Exam
Descriptive Question
1. Explain any four math function available in PHP.
2. How will you create arrays in PHP?
3. Write notes on formatting strings with PHP. Describe about drawing a new
image in
PHP
4. Write the difference between built in function & user defined function.
5. Explain any four string manipulating function with example.
6. Explain exploding & imploding function example.
7. How to remove leading and trailing spaces of the strings?
8. How to traversing array with different ways?
9. How to search an element from array using built in function?
10. Write a short note sorting on array.
11. How to remove any element from array?
12. How will you find number of elements in array?
13. List string related function?
14. Explain any two. List date related functions. Explain any two.
15. Write a function that prompts the user for a color and uses what they
UNIT :3
Position in Question Paper Total Marks-16
Q.1. c) 2-Marks.
Q.2. c) 4-Marks.
Q.3. d) 4-Marks.
Q.4. b) 4-Marks.
Q.5. b) 6-Marks.
Q.6. b) 6-Marks.
Q.6. c) 6-Marks.
Descriptive Question
1. What is the purpose of $this & extends?
2. What are serializable objects in PHP?
3. How to access properties and methods explain with example and also explain
$this variable?
4. How to declare and access properties of class.
5. List types of constructors. Explain any one with suitable example.
6. Define term constructor and destructor.
7. List types of inheritance. Explain any one with suitable example.
8. How multiple inheritance is achieved in PHP ?
9. Explain method overloading concept in PHP with suitable example.
10. Explain method overriding concept in PHP with suitable example.
11. Explain types of overloading in PHP.
12. Explain magic methods in PHP
13. Describe final class and final method.
14. Explain cloning object in PHP.
15. Explain in detail the types of inheritance supports by PHP.
UNIT :4
Position in Question Paper Total Marks- 16
Q.1. d) 2-Marks.
Q.2. d) 4-Marks.
Q.4. c) 4-Marks.
Descriptive Question
1. Explain self-processing forms in PHP with example
2. Write a PHP program that demonstrate form element (input elements).
3. Write a PHP program that demonstrates passing data using GET method.
4. Write a PHP program that demonstrates passing data using POST ethod.
5. How does the form information get from the browser to the server?
6. What is the difference between get and post methods?
7. How does PHP handle forms with multiple selections?
8. What is the difference between Session and Cook ie ?
9. How can we destroy the cookie?
10. What is the use of session_start() ?
11. How to register a variable in PHP session ? How to validate user input
PHP? Explain
12. Write a program to create a session, to set a value in session, and to
remove data from a session.
13. Write a PHP code to find greatest of two numbers? Accept numbers from
users
14. Create Customer form like Customer name, Address, mobile no, item purchase,
Amount using different form input element & display user inserted values in new
PHPform
15. Create Employee form like Employee name, Address, Mobile no, Date of birth,
Post & Salary using different form input element & display user inserted values in
same PHP form
16. A simple calculator web application that takes 2 numbers and an operator
(+,-,*,/,%) from an HTML page and returns the result page with the operation
performed on the operands.
17. Write a program that demonstrates use of cookies.
18. Write a PHP program that demonstrates use of session
19. Write a simple PHP program to check that emails are valid.
20. Explain the superglobals PHP
21. Define session and cookies
22. Define cookies. What is the need of it?
23. Define Cookie. How to create & delete it How can we retrieve a Cookie value?
UNIT :5
Position in Question Paper Total Marks-14
Q.1. e) 2-Marks.
Q.1. g) 2-Marks.
Q.3. a) 4-Marks.
Q.5. a) 6-Marks.
Q.5. c) 6-Marks.
Q.6. a) 6-Marks.
1. What is the purpose of the semicolon in MySQL queries?
2. Explain field types of MySQL.
3. Which command would you use to view the available databases or tables?
4. How can you view the structure of a table?
5. How do you connect to a MySQL database using mysqli?
6. How do you connect mysql database with PHP?
7. How do you submit a query to MySQL using mysqli?
8. How can you retrieve a string containing an error message when a mysqli error
occurs?
9. How can you determine the number of rows returned by a mysqli query?
10. How can you retrieve a particular row of data from a set of mysqli results?
11. What negative effects can happen if you do not close the objects created by
mysqli methods?
12. List types of MySQL databases.
13. Write the PHP code for fetching the data from a database to webpage?
14. What is difference between mysql_fetch_object and mysql_fetch_array
15. Explain mysql_num_rows and mysql_selectdb command