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. returns the number of matches found by a given search string under this format...






2. To refer to an item in an array






3. Search Engine Optimization






4. To sort the values while maintaining the correlation between each value and its key - in reversed order






5. The concatenation operator?






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






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






8. Function used to round down to the lowest integer






9. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.






10. Asynchronous Javascript And XML






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






12. Online applications and resources which are available to the general public with very few restrictions






13. Uses two arguments: constant name and constant definition






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






15. Variable names cannot begin with _______






16. To include files - _______ will give errors and _________ will terminate execution().






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






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






19. To reorganise the array randomly






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






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






22. Converts a string of ASCII characters to hexadecimal values






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






24. The order of operations.






25. used to round numeric values.






26. function Function used to create a random number






27. container of ordered data elements






28. a database which is best supported by PHP






29. $_SERVER is a ________ variable.






30. To find how many substrings are in a string






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






32. This will show all error reporting.






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






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






35. leading zero: 0100 or 0567






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






37. Control structures that break exit






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






39. To merge arrays






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






41. Tag to begin a php script






42. To determine the amount of elements in an array






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






44. EXtensible Markup Language






45. Use ________ to have multiple quotations in one string






46. Shorthand used to increment and decrement






47. The syntax for connecting to a database






48. collection of binary data






49. To remove all HTML and PHP tags.






50. does a certain action when called upon