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 by the keys while maintaining the correlation between the key and its value






2. The concatenation assignment operator?






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






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






5. used to round numeric values.






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






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






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






9. To get over quotation marks while using arrays






10. Uses two arguments: constant name and constant definition






11. Variable names can begin with __________






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






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






14. _______ is a comparison operator






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






16. signed floating-point value






17. The syntax for connecting to a database






18. addition






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






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






21. All variables must begin with _________.






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






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






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






25. Control structures that break exit






26. To merge arrays






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






28. equivalence






29. Used to find the length of a string






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






31. ___________ can be used with substr() to count backward






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






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






34. To refer to an item in an array






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






36. To iterate over the values of an array






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






38. PHP has two conditional: if and ______.






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






40. An array whose keys are numbers.






41. Asynchronous Javascript And XML






42. Use ________ to have multiple quotations in one string






43. Used to find the amount of words in a string.






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






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






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






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






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






49. does a certain action when called upon






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