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. Creates a pointer to a file with the declared mode (read - write -etc.).






2. does a certain action when called upon






3. An array of variables passed in the URL






4. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.






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






6. Standard Generalized Markup Language






7. Used to display errors in a particular script - should be placed at top of script.

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


8. To iterate over the keys and values of an array






9. This error arises from misusing a function.






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






11. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update






12. container of ordered data elements






13. $_POST and $_GET are ________ variables.






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






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






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






17. Hypertext Preprocessor - a server-side programing language used to create webpages






18. TRUE or FALSE






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






20. returns the number of matches found by a given search string under this format...






21. To find how many substrings are in a string






22. signed integer






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






24. Define(NAME,value)






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






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






27. When used the value can be passed safely through the URL (GET).






28. bitwise left shift






29. Document Type Definitions






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






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






32. To iterate over the values of an array






33. Variable names can begin with __________






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






35. This will show all error reporting.






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






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






38. To reorganise the array randomly






39. Hyper Text Transfer Protocol






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






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






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






43. Asynchronous Javascript And XML






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






45. signed floating-point value






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






47. Function used to round down to the lowest integer






48. identity






49. _______ is a comparison operator






50. To include files - _______ will give errors and _________ will terminate execution().