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. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.






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






3. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead






4. leading zero: 0100 or 0567






5. _____ is a logical operator






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






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






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






9. Standard Generalized Markup Language






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






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






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






13. bitwise left shift






14. Used to create a substring (referred to as a token) from a larger string






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






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






17. The order of operations.






18. Variable names can begin with __________






19. This fatal error arises from memory allocation problem.






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






21. An array of variables passed in the URL






22. Creates a pointer to a file with the declared mode (read - write -etc.).






23. Tag to begin a php script






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






25. Function used to round up to the highest integer






26. bitwise XOR






27. function Function used to create a random number






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






29. a line of information that can be stored in a variable or used in a function or statement






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






31. The concatenation operator?






32. used to round numeric values.






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






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






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






36. _______ is a comparison operator






37. Use ________ to have multiple quotations in one string






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






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






40. Function used to round down to the lowest integer






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






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






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






44. To check if a constant is already declared






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






46. The three types of loops in PHP are: for - while - ____.






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






48. Returns a character from a specified ASCII value






49. equivalence






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