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. Used to convert certain HTML tags into their entity versions.






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






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






4. The concatenation assignment operator?






5. Converts a string of ASCII characters to hexadecimal values






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






7. signed floating-point value






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






9. leading zero: 0100 or 0567






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






11. To create an array






12. Document Type Definitions






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






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






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






16. To declare a constant






17. To counter htmlentities()






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






19. Hyper Text Transfer Protocol






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






21. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;






22. To assign array element values to individual variables






23. To close a connection between a database






24. The syntax for connecting to a database






25. the most basic function in PHP used to output information to the page






26. container of ordered data elements






27. A data structure that can hold a number of items of data of the same type eg. a list of names






28. Hyper Text Markup Language






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






30. To get time data






31. Asynchronous Javascript And XML






32. To find how many substrings are in a string






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






34. Tag to begin a php script






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






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






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






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






39. Search Engine Optimization






40. used to round numeric values.






41. Control structures that break exit






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






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






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






45. Tag to end a php script






46. To reorganise the array randomly






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






48. bitwise right shift






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






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