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. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.






2. Used to find the length of a string






3. Control structures that break exit






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






5. An array of variables passed in the URL






6. Define(NAME,value)






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






8. a line of information that can be stored in a variable or used in a function or statement






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






10. Used to check if a variable has any value (including 0 or FALSE or an empty string).






11. To find how many substrings are in a string






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






13. container of both data and code






14. EXtensible Markup Language






15. standard notation






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






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






18. This will show all errors that fall under E_ALL or E_STRICT - the pipe | is used for 'or' so that errors that fall under either will be shown.






19. The name of the #! used to designate the location of the PHP binary






20. Use ______ when a variable contains any amount of variables; in general.






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






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






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






24. Active Server Pages






25. This will show all error reporting.






26. Uses two arguments: constant name and constant definition






27. A conditional or loop is a ________________.






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






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






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






31. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.






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






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






34. bitwise AND






35. does a certain action when called upon






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






37. To sort values of an array in reversed order






38. Tag to end a php script






39. collection of binary data






40. Function used to find the absolute value of a number or numeric variable






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






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






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






44. The concatenation operator?






45. signed integer






46. To get over quotation marks while using arrays






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






48. equivalence






49. Search Engine Optimization






50. Alias of rtrim()