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. container of both data and code






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






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






4. Returns a character from a specified ASCII value






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






6. bitwise right shift






7. Asynchronous Javascript And XML






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






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






10. To close a connection between a database






11. Used to find the length of a string






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






13. PHP has two conditional: if and ______.






14. collection of binary data






15. To check if a constant is already declared






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






17. To set up error reporting






18. Search Engine Optimization






19. To refer to an item in an array






20. An array of variables passed in the URL






21. This will show all error reporting.






22. bitwise AND






23. Tag to begin a php script






24. To assign keys to the values in an array






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






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






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






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






29. Variable names cannot begin with _______






30. leading zero: 0100 or 0567






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






32. To declare a constant






33. Tag to end a php script






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






35. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead






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






37. To reorganise the array randomly






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






39. Leading 0x: 0x13F or 0xA23






40. Function used to round down to the lowest integer






41. $_SERVER is a ________ variable.






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






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






44. To merge arrays






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






46. does a certain action when called upon






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






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






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






50. To create an array