0% found this document useful (0 votes)
11K views5 pages

Php-Question Bank

This document contains questions about PHP scripting language across 5 units. The questions range from basic concepts like what is PHP and web servers, to more advanced topics like object-oriented programming, databases, and XML. Some key areas covered include variables, arrays, conditional statements, functions, classes, file handling, SQL, error handling, and working with databases like MySQL and SQLite. Multiple choice and descriptive questions are provided at both 2 marks, 5 marks, and 10 marks levels.

Uploaded by

Selvam Mano
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11K views5 pages

Php-Question Bank

This document contains questions about PHP scripting language across 5 units. The questions range from basic concepts like what is PHP and web servers, to more advanced topics like object-oriented programming, databases, and XML. Some key areas covered include variables, arrays, conditional statements, functions, classes, file handling, SQL, error handling, and working with databases like MySQL and SQLite. Multiple choice and descriptive questions are provided at both 2 marks, 5 marks, and 10 marks levels.

Uploaded by

Selvam Mano
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

PHP SCRIPTING LANGUAGE

QUESTION BANK
UNIT 1
2 MARKS
1. What is php?
2. What is php file?
3. What php file can do?
4. List the characteristics of php.
5. What is internet?
6. What is www?
7. What is http?
8. What is URL?
9. What is website?
10. What is web server?
11. What is web browser?
12. What is SMTP server?
13. What I s ISP?
14. What is HTML?
15. What is Hyperlink?
16. What is DNS?
17. How will you create first php file?
18. Write few points about comment lines?
19. How will you handle php script errors?
20. Write notes on escaping special character>
21. What is php variable?
22. How will you assign a variable in php?
23. How will you destroy a variable in php?
24. List the data types of php.
25. What are constants?
26. List out operators available in php.

5 MARKS AND 10 MARKS


1. Explain the characteristics of php.
2. Discuss about basic web concepts.
3. What are the basic development concepts?
4. How will you create a first php file and explain it?
5. Write a notes on storing data’s in variables.
6. Explain about php data types.
7. Write short notes on setting and checking variables in data types.
8. Explain about php operators.
II UNIT
2 MARKS
1. What is the conditional statement?
2. State the syntax of IF statement.
3. State the syntax of IF…ELSE statement.
4. State the syntax of ELSE… IF statement.
5. What is switch statement?
6. State for loop.
7. Write the use of break and continue statement?
8. What is the use of empty string?
9. State the use of strlen() function.
10. State the use of str_repeat() function.
11. State the use of strcmp() function.
12. State the use of str_word_count() function.
13. State the use of str_replace() function.
14. State the use of trim function.
15. State the use of ceil() and floor() function.
16. How will you format the numbers?

5 MARKS AND 10 MARKS


1. Write brief notes about simple conditional statements
2. What are the complex conditional statements?
3. Explain the loops in php.
4. What are the string functions?
5. Explain about numeric functions.
UNIT III
2 MARKS

1. List the types of array.


2. What is numeric array?
3. What is an associative array?
4. Define multidimensional array.
5. How will you store a data in array?
6. How will you assign array values?
7. How to modify an array?
8. Define nesting array.
9. Define array iterator.
10. Write some php array functions.
11. What is implode and explode functions?
12. How will you add and remove array elements?
13. What is the use of in_array() functions?
14. What is the use of sort() function?
15. What is the use of array_merge() function?
16. What is the use of mktime() function?
17. What is the use of checkdate()?

5 MARKS AND 10 MARKS


1. Explain the topic of date and time functions.
2. Write the procedure to work with arrays.
3. How will you use forms in arrays?
4. How to process arrays with loops and iterations?
5. How will you store a data in array? And explain it.
6. Write the procedure to work with an array.

UNIT IV
2 MARKS
1. Write short notes on user defined data types in php.
2. What are the elements of function?
3. Define class in php.
4. Define object on php.
5. Define inheritance.
6. What is object overloading?
7. Define data Abstraction.
8. Define encapsulation.
9. How will you create a class in php?
10. How will you create a object in php?
11. How calling member function works?
12. Define construction function.
13. Write short notes on public, protected, private members.
14. What is the use of the file_get_ contents() function?
15. What is the use of fopen(),fget(), fclose() functions?
16. List the php file directory functions.
17. What is the use of file_exist() function?
18. What is the use of file_size() function?
19. What is the use of realpath() function?
20. What is the use of stat() function?
21. What is the use of mkdir() function?
22. What is the use of copy() function?
23. What is the use of remove() function?
24. What is the use of require() and include() function?

5 MARKS AND 10 MARKS


1. Write brief notes on user defined functions in php.
2. Explain about oop concepts in php.
3. How will you read the files from file directory?
4. How will you write the files to file directory?
5. List php directory functions in php and explain it.

UNIT V
2 MARKS
1. What are the features of php databases?
2. What is table?
3. What is primary key?
4. What is record?
5. What is database?
6. What is foreign key?
7. Define normalization.
8. What are the categories of SQL statements?
9. Give some examples of SQL statements.
10. How will you create a table in my sql?
11. What are the data type of attributes in my sql?
12. How will you insert in the my sql database?
13. How will you select datas in the my sql database?
14. How will you delete the data’s in the my sql database?
15. How will you update data’s in the sql database?
16. How will you get the data’s from the my sql database?
17. What are the error handling methods in php?
18. How will you create custom error handler?
19. What is the use of set error handler?
20. What is the use of trigger error handler?
21. What is the use of se error handler?
22. What are the possible error types?
23. What are the key words are used as the exception handler in php?
24. What are the exception classes?
25. What is SQLLite?
26. What are the SQLLite commands?
27. How will you create SQLLite database?
28. How will you insert the datas into the SQLLite database?
29. How will you drop the SQLLite table?
30. How will you delete the SQLLite table?
31. What is PDO extension?
32. Define XML?
33. What are the XML Technologies?
34. Define Well formed and valid formed document.
35. What are the XML parsing approaches?

5 MARKS AND 10 MARKS


1. Write notes on databases and sql.
2. What are the steps to access My SQL databases?
3. What are the error handling methods available in php?
4. Explain SQlLite Extension.
5. Discuss about XML and its functions.
6. Explain about DOM Extension.

You might also like