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. signed floating-point value






2. To counter htmlentities()






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






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






5. To find how many substrings are in a string






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






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






8. bitwise XOR






9. Control structure that continue exit - they perform specific statements for a determined number of iterations.






10. Standard Generalized Markup Language






11. Tag to end a php script






12. Variable names can begin with __________






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






14. This error arises from misusing a function.






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






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






17. Asynchronous Javascript And XML






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






19. To remove all HTML and PHP tags.






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






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






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






23. Hyper Text Markup Language






24. This fatal error arises from memory allocation problem.






25. PHP has two conditional: if and ______.






26. any programing language where the script is parsed on the server






27. The order of operations.






28. Variable names cannot begin with _______






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






30. Operators used to operate and assign






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






32. Use ______ for search engines or catalogued pages or pages that would be bookmarked.






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






34. All variables must begin with _________.






35. Used to find the length of a string






36. To assign array element values to individual variables






37. function Function used to create a random number






38. To reorganise the array randomly






39. An array of variables passed in the URL






40. Hyper Text Transfer Protocol






41. Alias of rtrim()






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






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






44. container of both data and code






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






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






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






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






49. equivalence






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