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. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED






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


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






4. To get over quotation marks while using arrays






5. Returns a character from a specified ASCII value






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






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






8. Use _______ for passwords or pages that would not be bookmarked or pages that require security.






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






10. Operators used to operate and assign






11. An array whose keys are strings; also known as a hash.






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






13. identity






14. To assign keys to the values in an array






15. To determine the amount of elements in an array






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






17. The output of var_export((float)array());






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






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






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






21. container of both data and code






22. The concatenation operator?






23. To assign array element values to individual variables






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






25. $_POST Data sent using POST found is sent to _______






26. To set up error reporting






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






28. bitwise XOR






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






30. An array of variables passed in the URL






31. Define(NAME,value)






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






33. allows you to split strings based on more complex rules






34. The syntax for connecting to a database






35. any programing language where the script is parsed on the server






36. bitwise left shift






37. The order of operations.






38. To create an array






39. standard notation






40. To sort values of an array in reversed order






41. does a certain action when called upon






42. container of ordered data elements






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






44. addition






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






46. The output of var_export((float)array(0));






47. Hyper Text Markup Language






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






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






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