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 sort values of an array without regard to the keys






2. bitwise left shift






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






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






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






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






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






8. container of both data and code






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






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






11. Define(NAME,value)






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






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






14. does a certain action when called upon






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






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






17. An array of variables passed with <input /> data






18. signed integer






19. This error arises from misusing a function.






20. a positive or negative number






21. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.






22. To close a connection between a database






23. equivalence






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






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






26. Leading 0x: 0x13F or 0xA23






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






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






29. To sort values of an array in reversed order






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






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






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






33. Used to find the length of a string






34. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.






35. Alias of rtrim()






36. The order of operations.






37. standard notation






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






39. The concatenation operator?






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






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






42. collection of binary data






43. To reorganise the array randomly






44. TRUE or FALSE






45. To remove all HTML and PHP tags.






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






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






48. To assign array element values to individual variables






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






50. To refer to an item in an array