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. To iterate over the keys and values of an array






2. EXtensible Markup Language






3. Used to replace a substring with another string - it is not case-sensitive.






4. Tag to end a php script






5. Tag to begin a php script






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






7. This error refers to a variable with no value.






8. $_POST and $_GET are ________ variables.






9. The concatenation operator?






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






11. To create an array






12. collection of binary data






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






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






15. The concatenation assignment operator?






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






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






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






19. does a certain action when called upon






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






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






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






23. To sort the values while maintaining the correlation between each value and its key






24. An array of variables passed in the URL






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






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






27. To set up error reporting






28. bitwise left shift






29. addition






30. Define(NAME,value)






31. used to round numeric values.






32. To assign keys to the values in an array






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






34. To counter htmlentities()






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






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






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






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


39. the most basic function in PHP used to output information to the page






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






41. Operators used to operate and assign






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






43. To declare a constant






44. To determine the amount of elements in an array






45. All variables must begin with _________.






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






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






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






49. Hyper Text Transfer Protocol






50. Search Engine Optimization