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. To determine the amount of elements in an array






2. Converts a string of ASCII characters to hexadecimal values






3. Creates a pointer to a file with the declared mode (read - write -etc.).






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






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






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






7. To close a connection between a database






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






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






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






11. An array of variables passed in the URL






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






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






14. used to round numeric values.






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






16. Define(NAME,value)






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






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






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






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






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






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






23. This will show all error reporting.






24. Tag to begin a php script






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






26. signed integer






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


28. To remove all HTML and PHP tags.






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






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






31. This error arises from misusing a function.






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






33. identity






34. Control structures that break exit






35. To assign keys to the values in an array






36. container of both data and code






37. This fatal error arises from memory allocation problem.






38. What You See Is What You Get






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






40. Active Server Pages






41. _____ is a logical operator






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






43. An array whose keys are numbers.






44. Operators used to operate and assign






45. bitwise XOR






46. a database which is best supported by PHP






47. Search Engine Optimization






48. either hasn't yet been set or is assigned NULL value






49. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.






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