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. a positive or negative number






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






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






4. _____ is a logical operator






5. Control structures that break exit






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






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






8. Use ________ to have multiple quotations in one string






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






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






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






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






13. Search Engine Optimization






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






15. EXtensible Markup Language






16. To declare a constant






17. This fatal error arises from memory allocation problem.






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






19. To create an array






20. To assign array element values to individual variables






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






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






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






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






25. To counter htmlentities()






26. $_SERVER is a ________ variable.






27. leading zero: 0100 or 0567






28. Tag to begin a php script






29. To assign keys to the values in an array






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






31. Returns a character from a specified ASCII value






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






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






34. used to round numeric values.






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






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






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






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






39. To remove all HTML and PHP tags.






40. Uses two arguments: constant name and constant definition






41. To determine the amount of elements in an array






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






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






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






45. equivalence






46. the most basic function in PHP used to output information to the page






47. To get time data






48. _______ is a comparison operator






49. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__






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