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 most basic function in PHP used to output information to the page






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






3. This will show all error reporting.






4. Operators used to operate and assign






5. Uses two arguments: constant name and constant definition






6. $_SERVER is a ________ variable.






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






8. Define(NAME,value)






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






10. used to round numeric values.






11. To iterate over the values of an array






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






13. To check if a constant is already declared






14. This fatal error arises from memory allocation problem.






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






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






17. container of ordered data elements






18. standard notation






19. To sort values of an array in reversed order






20. Used to convert all HTML tags into their entity versions.






21. To refer to an item in an array






22. To assign array element values to individual variables






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






24. addition






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






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






27. To find how many substrings are in a string






28. Function used to round down to the lowest integer






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






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






31. Used to find the length of a string






32. equivalence






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






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






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






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






37. To determine the amount of elements in an array






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






39. leading zero: 0100 or 0567






40. bitwise XOR






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






42. Standard Generalized Markup Language






43. Tag to end a php script






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






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






46. container of both data and code






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






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






49. To get time data






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