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. This fatal error arises from memory allocation problem.






2. To counter htmlentities()






3. $_SERVER is a ________ variable.






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






5. Shorthand used to increment and decrement






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






7. Variable names cannot begin with _______






8. leading zero: 0100 or 0567






9. Similar to mysql_fetch_array() - but cannot be accessed by integer offset






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






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






12. Define(NAME,value)






13. Function used to round up to the highest integer






14. All variables must begin with _________.






15. To assign keys to the values in an array






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






17. To close a connection between a database






18. Used to replace a substring with another string - it is not case-sensitive.






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






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






21. This will show all error reporting.






22. collection of binary data






23. does a certain action when called upon






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






25. Hyper Text Markup Language






26. To reorganise the array randomly






27. Hyper Text Transfer Protocol






28. PHP has two conditional: if and ______.






29. Tag to begin a php script






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






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






32. This will not show error reporting - it will be turned off.






33. To sort values of an array in reversed order






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






35. Control structures that break exit






36. To sort values of an array without regard to the keys






37. $_POST and $_GET are ________ variables.






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






39. Document Type Definitions






40. To sort the values while maintaining the correlation between each value and its key






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






42. identity






43. The order of operations.






44. EXtensible Markup Language






45. signed floating-point value






46. A conditional or loop is a ________________.






47. The output of var_export((float)array(0));






48. Used to convert all HTML tags into their entity versions.






49. This error refers to a variable with no value.






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