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 reset an array _______ the array() function to the array






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






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






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






5. used to round numeric values.






6. To sort values of an array in reversed order






7. To get time data






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






9. An array of variables passed in the URL






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






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






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






13. To reorganise the array randomly






14. bitwise XOR






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






16. Function used to round up to the highest integer






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






18. Control structures that break exit






19. container of both data and code






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






21. This will show all error reporting.






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






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






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






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






26. The concatenation operator?






27. Tag to begin a php script






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






29. Standard Generalized Markup Language






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






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






32. Leading 0x: 0x13F or 0xA23






33. To determine the amount of elements in an array






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






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






36. Variable names can begin with __________






37. _______ is a comparison operator






38. signed integer






39. The three types of loops in PHP are: for - while - ____.






40. To counter htmlentities()






41. TRUE or FALSE






42. $_POST and $_GET are ________ variables.






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






44. identity






45. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update






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






47. The output of var_export((float)array());






48. a database which is best supported by PHP






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






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