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. $_POST and $_GET are ________ variables.






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






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






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






5. equivalence






6. To iterate over the values of an array






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






8. This error arises from misusing a function.






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






10. To check if a constant is already declared






11. Use ______ when a variable contains any amount of variables; in general.






12. An array whose keys are strings; also known as a hash.






13. a positive or negative number






14. signed floating-point value






15. a database which is best supported by PHP






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






17. Use ________ to have multiple quotations in one string






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






19. To sort values of an array in reversed order






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






21. Tag to begin a php script






22. Converts a string of ASCII characters to hexadecimal values






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






24. The order of operations.






25. a language in which to make querys to a database with






26. Hyper Text Transfer Protocol






27. bitwise right shift






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






29. Used to replace a substring with another string - it is not case-sensitive.






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






31. To set up error reporting






32. PHP has two conditional: if and ______.






33. To merge arrays






34. Function used to round down to the lowest integer






35. A conditional or loop is a ________________.






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






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






38. Used to check if a variable has a valid numerical value; strings with numerical values pass.






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






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






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






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






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






44. Variable names can begin with __________






45. To remove all HTML and PHP tags.






46. _______ is a comparison operator






47. Used to display errors in a particular script - should be placed at top of script.

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


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






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






50. bitwise AND