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 all HTML tags into their entity versions.






2. To check if a constant is already declared






3. returns the number of matches found by a given search string under this format...






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






5. Operators used to operate and assign






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






7. function Function used to create a random number






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






9. To set up error reporting






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






11. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED






12. Used to find the length of a string






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






14. used to round numeric values.






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






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






17. Function used to round up to the highest integer






18. does a certain action when called upon






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






20. To determine the amount of elements in an array






21. a storage location in the computer's memory that has a type & a name and a contents






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






23. Leading 0x: 0x13F or 0xA23






24. An array whose keys are numbers.






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






26. addition






27. bitwise AND






28. Document Type Definitions






29. An array of variables passed in the URL






30. Variable names can begin with __________






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






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






33. Define(NAME,value)






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


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






36. To close a connection between a database






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






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






39. To refer to an item in an array






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






41. Uses two arguments: constant name and constant definition






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






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






44. Converts a string of ASCII characters to hexadecimal values






45. To word wrap after a certain amount of characters.






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






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






48. _____ is a logical operator






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






50. $_SERVER is a ________ variable.