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. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.






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






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






4. This error arises from misusing a function.






5. Variable names cannot begin with _______






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






7. _____ is a logical operator






8. To remove all HTML and PHP tags.






9. Used to find the length of a string






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






11. What You See Is What You Get






12. A conditional or loop is a ________________.






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






14. Function can you use to format a number with commas






15. To find how many substrings are in a string






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






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






18. This will show all error reporting.






19. Use ______ for search engines or catalogued pages or pages that would be bookmarked.






20. Function used to round down to the lowest integer






21. All variables must begin with _________.






22. addition






23. To get over quotation marks while using arrays






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






25. To create an array






26. equivalence






27. container of ordered data elements






28. Returns a character from a specified ASCII value






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






30. To refer to an item in an array






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






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






33. bitwise left shift






34. To set up error reporting






35. To assign keys to the values in an array






36. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.






37. function Function used to create a random number






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






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






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






41. To close a connection between a database






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






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






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






45. leading zero: 0100 or 0567






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






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






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






49. Asynchronous Javascript And XML






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