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 refer to an element in a multidimensional array list the indices in order of _____ to more precise;






2. equivalence






3. print $_SERVER will _____ work if you use the print function on arrays.






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






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






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






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






8. Control structures that break exit






9. The concatenation operator?






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






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






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






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






14. What You See Is What You Get






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






16. bitwise right shift






17. To remove all HTML and PHP tags.






18. a database which is best supported by PHP






19. Function used to round up to the highest integer






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






21. This fatal error arises from memory allocation problem.






22. Function used to round down to the lowest integer






23. Use ________ to have multiple quotations in one string






24. $_SERVER is a ________ variable.






25. Uses two arguments: constant name and constant definition






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






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






28. The syntax for connecting to a database






29. To find how many substrings are in a string






30. Used to find the length of a string






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






32. used to round numeric values.






33. To assign keys to the values in an array






34. a language in which to make querys to a database with






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






36. To declare a constant






37. function Function used to create a random number






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






39. _____ is a logical operator






40. The order of operations.






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






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






43. addition






44. To close a connection between a database






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






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






47. signed integer






48. 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 __________.






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






50. TRUE or FALSE