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 include files - _______ will give errors and _________ will terminate execution().






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






3. a database which is best supported by PHP






4. signed integer






5. Used to find the length of a string






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






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






8. Alias of rtrim()






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






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






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






12. A conditional or loop is a ________________.






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






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






15. Used to replace a substring with another string - it is not case-sensitive.






16. Asynchronous Javascript And XML






17. To counter htmlentities()






18. PHP has two conditional: if and ______.






19. Standard Generalized Markup Language






20. bitwise XOR






21. To declare a constant






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






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






24. To remove all HTML and PHP tags.






25. An array whose keys are numbers.






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






27. Tag to end a php script






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






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






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






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






32. To find how many substrings are in a string






33. a positive or negative number






34. To iterate over the values of an array






35. standard notation






36. Control structures that break exit






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






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






39. Use _______ for passwords or pages that would not be bookmarked or pages that require security.






40. Returns a string with backslashes in front of the specified characters






41. To determine the amount of elements in an array






42. Similar to mysql_fetch_array() - but cannot be accessed by integer offset






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






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






45. Returns a string with backslashes in front of predefined characters






46. This fatal error arises from memory allocation problem.






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






48. Variable names can begin with __________






49. EXtensible Markup Language






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