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. To iterate over the keys and values of an array






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






3. An array of variables passed in the URL






4. This will show all error reporting.






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






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






7. Uses two arguments: constant name and constant definition






8. $_POST Data sent using POST found is sent to _______






9. container of ordered data elements






10. signed floating-point value






11. Hyper Text Markup Language






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






13. Use ______ when a variable contains any amount of variables; in general.






14. Operators used to operate and assign






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


16. allows you to split strings based on more complex rules






17. The ouput of var_export((bool)"NULL");






18. Shorthand used to increment and decrement






19. To counter htmlentities()






20. PHP has two conditional: if and ______.






21. a language in which to make querys to a database with






22. To refer to an item in an array






23. Variable names can begin with __________






24. the most basic function in PHP used to output information to the page






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






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






27. a database which is best supported by PHP






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






29. Returns a string with backslashes in front of predefined characters






30. To declare a constant






31. The prefix for a dynamic variable - also known as a variable variable






32. function Function used to create a random number






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






34. A conditional or loop is a ________________.






35. Converts a string of ASCII characters to hexadecimal values






36. The syntax for connecting to a database






37. searches the subject for matches to a given pattern replaced with the given replacement text






38. ____ or key is referred to for a value within an array.






39. Use ________ to have multiple quotations in one string






40. The three types of loops in PHP are: for - while - ____.






41. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED






42. standard notation






43. When used the value can be passed safely through the URL (GET).






44. Leading 0x: 0x13F or 0xA23






45. returns the number of matches found by a given search string under this format...






46. To word wrap after a certain amount of characters.






47. container of both data and code






48. Use ______ when there are no variables in the string






49. print $_SERVER will _____ work if you use the print function on arrays.






50. EXtensible Markup Language