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 ______ when there are no variables in the string






2. _________ can be used in conditional statements to set precedence






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






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






5. Used to check if a variable has any value (including 0 or FALSE or an empty string).






6. bitwise left shift






7. To sort values of an array in reversed order






8. Define(NAME,value)






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






10. Alias of rtrim()






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






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






13. Used to create a substring (referred to as a token) from a larger string






14. Variable names can begin with __________






15. Standard Generalized Markup Language






16. What You See Is What You Get






17. To remove all HTML and PHP tags.






18. An array of variables passed in the URL






19. addition






20. Use ________ to have multiple quotations in one string






21. To assign array element values to individual variables






22. To counter htmlentities()






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






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






25. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.






26. Document Type Definitions






27. bitwise AND






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






29. Converts a string of ASCII characters to hexadecimal values






30. To declare a constant






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






32. Hyper Text Transfer Protocol






33. To assign keys to the values in an array






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






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






36. standard notation






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






38. 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.






39. Search Engine Optimization






40. leading zero: 0100 or 0567






41. PHP has two conditional: if and ______.






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






43. a database which is best supported by PHP






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






45. collection of binary data






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






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






48. TRUE or FALSE






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






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