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. Document Type Definitions






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






3. To find how many substrings are in a string






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






5. Variable names can begin with __________






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






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






8. Shorthand used to increment and decrement






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






10. To assign array element values to individual variables






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






12. This will show all error reporting.






13. $_POST and $_GET are ________ variables.






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






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






16. Function used to find the absolute value of a number or numeric variable






17. The concatenation assignment operator?






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






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






20. The concatenation operator?






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






22. a storage location in the computer's memory that has a type & a name and a contents






23. To declare a constant






24. Used to find the length of a string






25. EXtensible Markup Language






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






27. bitwise left shift






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


29. This error arises from misusing a function.






30. Function used to round down to the lowest integer






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






32. signed integer






33. Converts a string of ASCII characters to hexadecimal values






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






35. Variable names cannot begin with _______






36. The order of operations.






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






38. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;






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






40. PHP has two conditional: if and ______.






41. To create an array






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






43. Hyper Text Markup Language






44. To get time data






45. To assign keys to the values in an array






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






47. Hyper Text Transfer Protocol






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






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






50. equivalence