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 declare a constant






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






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






4. To assign array element values to individual variables






5. To assign keys to the values in an array






6. To create an array






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






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






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






10. used to round numeric values.






11. function Function used to create a random number






12. An array whose keys are numbers.






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






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






15. Asynchronous Javascript And XML






16. To merge arrays






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






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






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






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






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






22. To check if a constant is already declared






23. Hyper Text Markup Language






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






25. The order of operations.






26. Define(NAME,value)






27. Uses two arguments: constant name and constant definition






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






29. a type with two possible values: true and false






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






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






32. searches the subject for matches to a given pattern replaced with the given replacement text






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






34. This error arises from misusing a function.






35. The concatenation assignment operator?






36. signed floating-point value






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






38. The concatenation operator?






39. bitwise XOR






40. Active Server Pages






41. Alias of rtrim()






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






43. Returns a character from a specified ASCII value






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






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






46. This will show all error reporting.






47. identity






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






49. Function used to round down to the lowest integer






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