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. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__






2. To find how many substrings are in a string






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






4. To check if a constant is already declared






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






6. any programing language where the user must support the language the script is written in






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






8. To determine the amount of elements in an array






9. All variables must begin with _________.






10. Variable names cannot begin with _______






11. _____ is a logical operator






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






13. a database which is best supported by PHP






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






15. Standard Generalized Markup Language






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






17. To iterate over the values of an array






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






19. TRUE or FALSE






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






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






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






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






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






25. Document Type Definitions






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






27. collection of binary data






28. Variable names can begin with __________






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






30. The concatenation operator?






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






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






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






34. To counter htmlentities()






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






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






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






38. Hypertext Preprocessor - a server-side programing language used to create webpages






39. Active Server Pages






40. To sort values of an array in reversed order






41. Tag to begin a php script






42. $_SERVER is a ________ variable.






43. To close a connection between a database






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






45. signed integer






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






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






48. This will show all error reporting.






49. To merge arrays






50. Function used to find the absolute value of a number or numeric variable