Test your basic knowledge |

Php Programming Basics

Subject : it-skills
Instructions:
  • Answer 50 questions in 15 minutes.
  • If you are not ready to take this test, you can study here.
  • Match each statement with the correct term.
  • Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.

This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. A conditional or loop is a ________________.






2. To set up error reporting






3. collection of binary data






4. _______ is a comparison operator






5. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.






6. Asynchronous Javascript And XML






7. ___________ can be used with substr() to count backward






8. bitwise left shift






9. To find how many substrings are in a string






10. Use ______ for search engines or catalogued pages or pages that would be bookmarked.






11. This error refers to a variable with no value.






12. This will show all error reporting except for notice errors.






13. bitwise XOR






14. $_SERVER is a ________ variable.






15. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.






16. Function that contains the highest value that rand() can have randomly






17. Alias of rtrim()






18. a database which is best supported by PHP






19. To get time data






20. Used to check if a variable has a valid numerical value; strings with numerical values pass.






21. To reset an array _______ the array() function to the array






22. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead






23. Function can you use to format a number with commas






24. says 'if' this then do this 'else' do this or 'while' this do this






25. Used to find the amount of words in a string.






26. used to round numeric values.






27. To check if a constant is already declared






28. Document Type Definitions






29. The name of the #! used to designate the location of the PHP binary






30. To sort values of an array without regard to the keys






31. The four main error types are:Notice - Warning - ________ and Error.






32. Used to display errors in a particular script - should be placed at top of script.


33. Function used to find the absolute value of a number or numeric variable






34. To merge arrays






35. The array that stores variables specific to a user's visit






36. Define(NAME,value)






37. Returns a character from a specified ASCII value






38. $_POST and $_GET are ________ variables.






39. Control structures that break exit






40. The order of operations.






41. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.






42. PHP has two conditional: if and ______.






43. Control structure that continue exit - they perform specific statements for a determined number of iterations.






44. To iterate over the values of an array






45. either hasn't yet been set or is assigned NULL value






46. identity






47. To include files - _______ will give errors and _________ will terminate execution().






48. Tag to end a php script






49. To assign array element values to individual variables






50. Use ________ to have multiple quotations in one string