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. Use _______ for passwords or pages that would not be bookmarked or pages that require security.






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






3. To get time data






4. any programing language where the script is parsed on the server






5. Document Type Definitions






6. Returns a string with backslashes in front of the specified characters






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






8. bitwise right shift






9. A data structure that can hold a number of items of data of the same type eg. a list of names






10. Standard Generalized Markup Language






11. This will show all error reporting.






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






13. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.






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






15. container of ordered data elements






16. An array whose keys are strings; also known as a hash.






17. collection of binary data






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






19. An array whose keys are numbers.






20. Variable names can begin with __________






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






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






23. To sort by the keys while maintaining the correlation between the key and its value






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






25. What You See Is What You Get






26. To assign array element values to individual variables






27. Similar to mysql_fetch_array() - but cannot be accessed by integer offset






28. any programing language where the user must support the language the script is written in






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






30. To delete a variable or an element of an array






31. standard notation






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






33. does a certain action when called upon






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






35. a type with two possible values: true and false






36. Tag to begin a php script






37. This will show all errors that fall under E_ALL or E_STRICT - the pipe | is used for 'or' so that errors that fall under either will be shown.






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






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






40. To get over quotation marks while using arrays






41. The order of operations.






42. Uses two arguments: constant name and constant definition






43. The concatenation operator?






44. This will not show error reporting - it will be turned off.






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






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






47. To append elements to an array - this will assign item to the next available index; associative arrays get messy.






48. An array of variables passed with <input /> data






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






50. function Function used to create a random number