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. $_POST and $_GET are ________ variables.






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






3. used to round numeric values.






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






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






6. An array whose keys are numbers.






7. To merge arrays






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






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






10. This error arises from misusing a function.






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






12. Control structures that break exit






13. When used the value can be passed safely through the URL (GET).






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






15. An array of variables passed in the URL






16. Use ________ to have multiple quotations in one string






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






18. Used to find the length of a string






19. The concatenation assignment operator?






20. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.






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






22. A conditional or loop is a ________________.






23. equivalence






24. $_SERVER is a ________ variable.






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






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






27. To get over quotation marks while using arrays






28. What You See Is What You Get






29. Hypertext Preprocessor - a server-side programing language used to create webpages






30. Used to check if a variable has a valid numerical value; strings with numerical values pass.






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






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






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






34. To sort values of an array without regard to the keys






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






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






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






38. signed integer






39. To sort values of an array in reversed order






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






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






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






43. To delete a variable or an element of an array






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






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






46. Tag to begin a php script






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






48. identity






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






50. To put a dollar sign before a variable like $10 where 10 is the variable's value - you can escape the first dollar sign; $$cost; or you can use __________.