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 sort values of an array without regard to the keys






2. To close a connection between a database






3. Standard Generalized Markup Language






4. To merge arrays






5. container of ordered data elements






6. The three types of loops in PHP are: for - while - ____.






7. To create an array






8. Use ________ to have multiple quotations in one string






9. bitwise XOR






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






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






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






13. Search Engine Optimization






14. To get over quotation marks while using arrays






15. Document Type Definitions






16. Function that contains the highest value that rand() can have randomly






17. bitwise AND






18. Returns a string with backslashes in front of the specified characters






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






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






21. To counter htmlentities()






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






23. To get time data






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






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






26. To refer to an item in an array






27. addition






28. Control structures that break exit






29. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.






30. To determine the amount of elements in an array






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






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






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






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






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






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






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






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






39. This fatal error arises from memory allocation problem.






40. Used to display errors in a particular script - should be placed at top of script.


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






42. All variables must begin with _________.






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






44. Function used to round down to the lowest integer






45. Tag to end a php script






46. Control structure that continue exit - they perform specific statements for a determined number of iterations.






47. The order of operations.






48. The syntax for connecting to a database






49. Used to find the length of a string






50. Variable names can begin with __________