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. any programing language where the user must support the language the script is written in






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






3. To include files - _______ will give errors and _________ will terminate execution().






4. The concatenation assignment operator?






5. Variable names can begin with __________






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






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






8. The syntax for connecting to a database






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






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






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






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






13. Asynchronous Javascript And XML






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






15. To reorganise the array randomly






16. bitwise right shift






17. Active Server Pages






18. _______ is a comparison operator






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






20. PHP has two conditional: if and ______.






21. EXtensible Markup Language






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






23. To counter htmlentities()






24. To sort values of an array in reversed order






25. Search Engine Optimization






26. Function used to round up to the highest integer






27. To iterate over the values of an array






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






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






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






31. bitwise AND






32. collection of binary data






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






34. Hyper Text Markup Language






35. To get time data






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






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






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






39. To sort values of an array without regard to the keys






40. a positive or negative number






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






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






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






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






45. identity






46. This will show all error reporting.






47. To determine the amount of elements in an array






48. equivalence






49. To get over quotation marks while using arrays






50. Tag to end a php script