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. EXtensible Markup Language






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






3. To merge arrays






4. The concatenation operator?






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






6. _______ is a comparison operator






7. All variables must begin with _________.






8. Uses two arguments: constant name and constant definition






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






10. TRUE or FALSE






11. The output of var_export((float)array(0));






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






13. This fatal error arises from memory allocation problem.






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






15. The order of operations.






16. Tag to begin a php script






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






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






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






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






21. To iterate over the values of an array






22. Use ________ to have multiple quotations in one string






23. To close a connection between a database






24. bitwise XOR






25. addition






26. Shorthand used to increment and decrement






27. a positive or negative number






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






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






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






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






32. Used to encrypt values - it is a one-way encryption method






33. a database which is best supported by PHP






34. Variable names can begin with __________






35. Standard Generalized Markup Language






36. bitwise left shift






37. To reorganise the array randomly






38. Control structures that break exit






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






40. To assign keys to the values in an array






41. says 'if' this then do this 'else' do this or 'while' this do this






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






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






44. Used to convert certain HTML tags into their entity versions.






45. This error arises from misusing a function.






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






47. To create an array






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






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






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