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. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.






2. Variable names cannot begin with _______






3. Tag to begin a php script






4. To sort values of an array in reversed order






5. Uses two arguments: constant name and constant definition






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






7. To merge arrays






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






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






10. leading zero: 0100 or 0567






11. container of both data and code






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






13. function Function used to create a random number






14. identity






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






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






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






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






19. Function that contains the highest value that rand() can have randomly






20. Returns a character from a specified ASCII value






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






22. Define(NAME,value)






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






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






25. used to round numeric values.






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






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






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






29. PHP has two conditional: if and ______.






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






31. Variable names can begin with __________






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






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






34. This will not show error reporting - it will be turned off.






35. Function can you use to format a number with commas






36. This fatal error arises from memory allocation problem.






37. To assign keys to the values in an array






38. Creates a pointer to a file with the declared mode (read - write -etc.).






39. To reorganise the array randomly






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






41. To word wrap after a certain amount of characters.






42. This will show all error reporting.






43. $_POST and $_GET are ________ variables.






44. To remove all HTML and PHP tags.






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






46. EXtensible Markup Language






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






48. Leading 0x: 0x13F or 0xA23






49. An array of variables passed in the URL






50. Shorthand used to increment and decrement