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. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.






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






3. Leading 0x: 0x13F or 0xA23






4. standard notation






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






6. To close a connection between a database






7. To refer to an item in an array






8. To set up error reporting






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






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






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






12. Define(NAME,value)






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






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






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






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






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






18. Alias of rtrim()






19. says 'if' this then do this 'else' do this or 'while' this do this






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






21. To remove all HTML and PHP tags.






22. Function used to round down to the lowest integer






23. a positive or negative number






24. container of ordered data elements






25. Uses two arguments: constant name and constant definition






26. To counter htmlentities()






27. bitwise XOR






28. Used to convert certain HTML tags into their entity versions.






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






30. The concatenation operator?






31. An array of variables passed in the URL






32. To sort values of an array in reversed order






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






34. Variable names can begin with __________






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






36. To find how many substrings are in a string






37. addition






38. bitwise right shift






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






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






41. The concatenation assignment operator?






42. identity






43. To iterate over the values of an array






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






45. used to round numeric values.






46. This error arises from misusing a function.






47. Use ________ to have multiple quotations in one string






48. Returns a character from a specified ASCII value






49. Hyper Text Transfer Protocol






50. Use _______ for passwords or pages that would not be bookmarked or pages that require security.