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. An array of variables passed in the URL






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






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






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






5. bitwise XOR






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






7. EXtensible Markup Language






8. TRUE or FALSE






9. _______ is a comparison operator






10. Function that contains the highest value that rand() can have randomly






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






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






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






14. $_POST and $_GET are ________ variables.






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






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






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






18. ____ or key is referred to for a value within an array.






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






20. To get time data






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






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






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






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






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






26. Hyper Text Markup Language






27. Document Type Definitions






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






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






30. The concatenation assignment operator?






31. Tag to end a php script






32. PHP has two conditional: if and ______.






33. What You See Is What You Get






34. The order of operations.






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






36. Operators used to operate and assign






37. used to round numeric values.






38. To reorganise the array randomly






39. To create an array






40. To declare a constant






41. To reset an array _______ the array() function to the array






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






43. addition






44. collection of binary data






45. standard notation






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






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






48. To get over quotation marks while using arrays






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






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