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 append elements to an array - this will assign item to the next available index; associative arrays get messy.






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






3. To iterate over the values of an array






4. equivalence






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






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






7. To sort values of an array in reversed order






8. a storage location in the computer's memory that has a type & a name and a contents






9. Shorthand used to increment and decrement






10. _____ is a logical operator






11. Document Type Definitions






12. To refer to an item in an array






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






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






15. Uses two arguments: constant name and constant definition






16. _______ is a comparison operator






17. The order of operations.






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






19. used to round numeric values.






20. container of both data and code






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






22. An array of variables passed in the URL






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






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






25. To merge arrays






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






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






28. Leading 0x: 0x13F or 0xA23






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






30. Control structures that break exit






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






32. What You See Is What You Get






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






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






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






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






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






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






39. Hyper Text Transfer Protocol






40. An array whose keys are numbers.






41. To assign keys to the values in an array






42. Function used to round down to the lowest integer






43. All variables must begin with _________.






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






45. identity






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






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






48. To reorganise the array randomly






49. collection of binary data






50. leading zero: 0100 or 0567