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. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.






2. Uses two arguments: constant name and constant definition






3. bitwise right shift






4. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED






5. To refer to an item in an array






6. standard notation






7. Function can you use to format a number with commas






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






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






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






11. To reorganise the array randomly






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






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






14. bitwise left shift






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






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






17. Variable names can begin with __________






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






19. The ouput of var_export((bool)"NULL");






20. signed integer






21. a positive or negative number






22. used to round numeric values.






23. To declare a constant






24. Variable names cannot begin with _______






25. Tag to end a php script






26. Use ________ to have multiple quotations in one string






27. Used to find the length of a string






28. Define(NAME,value)






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






30. collection of binary data






31. Operators used to operate and assign






32. The concatenation operator?






33. function Function used to create a random number






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






35. An array of variables passed in the URL






36. container of ordered data elements






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






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






39. To check if a constant is already declared






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






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






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






43. To find how many substrings are in a string






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






45. To iterate over the values of an array






46. An array whose keys are strings; also known as a hash.






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






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






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






50. EXtensible Markup Language