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. a positive or negative number






2. Variable names can begin with __________






3. An array whose keys are numbers.






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






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






6. This fatal error arises from memory allocation problem.






7. _______ is a comparison operator






8. Define(NAME,value)






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






10. container of ordered data elements






11. Uses two arguments: constant name and constant definition






12. _________ can be used in conditional statements to set precedence






13. The concatenation assignment operator?






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






15. To reorganise the array randomly






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






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






18. To assign keys to the values in an array






19. Used to find the length of a string






20. This will show all error reporting.






21. Active Server Pages






22. To find how many substrings are in a string






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






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






25. Control structures that break exit






26. Used to find the amount of words in a string.






27. function Function used to create a random number






28. Converts a string of ASCII characters to hexadecimal values






29. To iterate over the keys and values of an array






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






31. Use ______ when a variable contains any amount of variables; in general.






32. To set up error reporting






33. equivalence






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






35. Leading 0x: 0x13F or 0xA23






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






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






38. bitwise right shift






39. The syntax for connecting to a database






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






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






42. Returns a character from a specified ASCII value






43. To close a connection between a database






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






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






46. identity






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






48. bitwise XOR






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






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