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. The name of the #! used to designate the location of the PHP binary






2. To remove all HTML and PHP tags.






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






4. Variable names can begin with __________






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






6. Tag to begin a php script






7. Control structures that break exit






8. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__






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






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






11. To iterate over the keys and values of an array






12. To create an array






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






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






15. Operators used to operate and assign






16. Tag to end a php script






17. Use _______ for passwords or pages that would not be bookmarked or pages that require security.






18. All variables must begin with _________.






19. Online applications and resources which are available to the general public with very few restrictions






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






21. An array whose keys are numbers.






22. bitwise left shift






23. To determine the amount of elements in an array






24. bitwise right shift






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






26. Used to find the length of a string






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






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






29. The order of operations.






30. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.






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






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






33. addition






34. a line of information that can be stored in a variable or used in a function or statement






35. $_POST and $_GET are ________ variables.






36. Define(NAME,value)






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






38. $_SERVER is a ________ variable.






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






40. This error arises from misusing a function.






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






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






43. Leading 0x: 0x13F or 0xA23






44. _______ is a comparison operator






45. A conditional or loop is a ________________.






46. identity






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






48. The output of var_export((float)array());






49. What You See Is What You Get






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