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. searches the subject for matches to a given pattern replaced with the given replacement text






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






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






4. The concatenation operator?






5. identity






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






7. To iterate over the values of an array






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






9. Asynchronous Javascript And XML






10. Active Server Pages






11. EXtensible Markup Language






12. This fatal error arises from memory allocation problem.






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






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






15. PHP has two conditional: if and ______.






16. Control structures that break exit






17. To find how many substrings are in a string






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






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






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






21. To determine the amount of elements in an array






22. To create an array






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






24. Document Type Definitions






25. Returns a character from a specified ASCII value






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






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






28. bitwise right shift






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






30. To sort the values while maintaining the correlation between each value and its key






31. Uses two arguments: constant name and constant definition






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






33. This will show all error reporting.






34. leading zero: 0100 or 0567






35. Converts a string of ASCII characters to hexadecimal values






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






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






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






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






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






41. Function used to round down to the lowest integer






42. This will not show error reporting - it will be turned off.






43. a positive or negative number






44. $_POST and $_GET are ________ variables.






45. Used to convert certain HTML tags into their entity versions.






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






47. Control structure that continue exit - they perform specific statements for a determined number of iterations.






48. Tag to end a php script






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






50. An array of variables passed in the URL