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. bitwise right shift






2. The syntax for connecting to a database






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






4. Hyper Text Markup Language






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






6. Variable names can begin with __________






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






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






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






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






11. PHP has two conditional: if and ______.






12. Search Engine Optimization






13. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.






14. collection of binary data






15. The prefix for a dynamic variable - also known as a variable variable






16. signed floating-point value






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






18. Define(NAME,value)






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






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






21. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.






22. standard notation






23. bitwise XOR






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






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






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






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






28. To close a connection between a database






29. allows you to split strings based on more complex rules






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






31. An array whose keys are numbers.






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






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






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






35. Used to find the length of a string






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






37. a database which is best supported by PHP






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






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






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






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






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






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






44. To create an array






45. $_SERVER is a ________ variable.






46. container of both data and code






47. EXtensible Markup Language






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






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






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