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. Online applications and resources which are available to the general public with very few restrictions






2. To set up error reporting






3. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.






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






5. _____ is a logical operator






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






7. _______ is a comparison operator






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






9. addition






10. To sort values of an array in reversed order






11. $_SERVER is a ________ variable.






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






13. Tag to begin a php script






14. Use ________ to have multiple quotations in one string






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






16. leading zero: 0100 or 0567






17. Use _______ for passwords or pages that would not be bookmarked or pages that require security.






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






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






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






21. To refer to an item in an array






22. Search Engine Optimization






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






24. The concatenation assignment operator?






25. signed integer






26. To declare a constant






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






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






29. function Function used to create a random number






30. Define(NAME,value)






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






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






33. A conditional or loop is a ________________.






34. Variable names cannot begin with _______






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






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






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






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






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






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






41. To assign keys to the values in an array






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






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






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






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






46. TRUE or FALSE






47. Returns a character from a specified ASCII value






48. To determine the amount of elements in an array






49. To merge arrays






50. Uses two arguments: constant name and constant definition