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 refer to an item in an array






2. Control structures that break exit






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






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






5. Active Server Pages






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






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






8. The concatenation assignment operator?






9. Hyper Text Transfer Protocol






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






11. All variables must begin with _________.






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






13. To sort by the keys while maintaining the correlation between the key and its value






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






15. Tag to end a php script






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






17. To declare a constant






18. bitwise AND






19. TRUE or FALSE






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






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






22. collection of binary data






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






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






25. _______ is a comparison operator






26. An array of variables passed in the URL






27. This will show all error reporting.






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






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






30. Converts a string of ASCII characters to hexadecimal values






31. What You See Is What You Get






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






33. To get over quotation marks while using arrays






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






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






36. $_SERVER is a ________ variable.






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






38. To remove all HTML and PHP tags.






39. To find how many substrings are in a string






40. To include files - _______ will give errors and _________ will terminate execution().






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






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






43. Define(NAME,value)






44. does a certain action when called upon






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






46. This error arises from misusing a function.






47. To reset an array _______ the array() function to the array






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






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






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