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. Used to check if a variable has any value (including 0 or FALSE or an empty string).






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






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






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






5. An array of variables passed in the URL






6. A conditional or loop is a ________________.






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






8. Operators used to operate and assign






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






10. The concatenation assignment operator?






11. TRUE or FALSE






12. _____ is a logical operator






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






14. All variables must begin with _________.






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






16. Variable names cannot begin with _______






17. PHP has two conditional: if and ______.






18. Hyper Text Transfer Protocol






19. An array whose keys are numbers.






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






21. The four main error types are:Notice - Warning - ________ and Error.






22. To set up error reporting






23. ____ or key is referred to for a value within an array.






24. 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.






25. To iterate over the keys and values of an array






26. Document Type Definitions






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






28. To create an array






29. Converts a string of ASCII characters to hexadecimal values






30. To remove all HTML and PHP tags.






31. Control structures that break exit






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






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






34. To counter htmlentities()






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






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






37. any programing language where the user must support the language the script is written in






38. leading zero: 0100 or 0567






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






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






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






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






43. Uses two arguments: constant name and constant definition






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






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






46. EXtensible Markup Language






47. Leading 0x: 0x13F or 0xA23






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






49. Hyper Text Markup Language






50. To refer to an item in an array