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 refer to an item in an array






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






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






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






5. To set up error reporting






6. To determine the amount of elements in an array






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






8. signed integer






9. All variables must begin with _________.






10. Converts a string of ASCII characters to hexadecimal values






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






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






13. The syntax for connecting to a database






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






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






16. An array of variables passed in the URL






17. $_SERVER is a ________ variable.






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






19. collection of binary data






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






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






22. standard notation






23. To merge arrays






24. equivalence






25. Tag to begin a php script






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






27. The three types of loops in PHP are: for - while - ____.






28. An array whose keys are numbers.






29. bitwise AND






30. To find how many substrings are in a string






31. Used to find the length of a string






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






33. What You See Is What You Get






34. used to round numeric values.






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






36. $_POST and $_GET are ________ variables.






37. Function used to round down to the lowest integer






38. PHP has two conditional: if and ______.






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






40. To append elements to an array - this will assign item to the next available index; associative arrays get messy.






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






42. leading zero: 0100 or 0567






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






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






45. Hyper Text Markup Language






46. bitwise XOR






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






48. identity






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






50. To check if a constant is already declared