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 the values while maintaining the correlation between each value and its key - in reversed order






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






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






4. identity






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






6. To create an array






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






8. To get over quotation marks while using arrays






9. $_SERVER is a ________ variable.






10. Asynchronous Javascript And XML






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






12. standard notation






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






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






15. Variable names can begin with __________






16. Converts a string of ASCII characters to hexadecimal values






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






18. Control structures that break exit






19. An array whose keys are numbers.






20. To sort values of an array without regard to the keys






21. To determine the amount of elements in an array






22. The concatenation operator?






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






24. Operators used to operate and assign






25. A conditional or loop is a ________________.






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






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






28. Alias of rtrim()






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






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






31. container of ordered data elements






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






33. To iterate over the values of an array






34. This fatal error arises from memory allocation problem.






35. $_POST and $_GET are ________ variables.






36. Search Engine Optimization






37. The name of the #! used to designate the location of the PHP binary






38. The syntax for connecting to a database






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






40. To assign keys to the values in an array






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






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






43. To close a connection between a database






44. bitwise XOR






45. Hyper Text Markup Language






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






47. To counter htmlentities()






48. Used to find the length of a string






49. To refer to an item in an array






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