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 find the amount of words in a string.






2. collection of binary data






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






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






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






6. To find how many substrings are in a string






7. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.






8. function Function used to create a random number






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






10. Document Type Definitions






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






12. To close a connection between a database






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






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






15. To assign array element values to individual variables






16. The syntax for connecting to a database






17. All variables must begin with _________.






18. standard notation






19. Function used to round down to the lowest integer






20. container of ordered data elements






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






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






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






24. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead






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






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






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






28. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__






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






30. Tag to begin a php script






31. container of both data and code






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






33. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.






34. To sort values of an array in reversed order






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






36. To assign keys to the values in an array






37. _______ is a comparison operator






38. Shorthand used to increment and decrement






39. Used to find the length of a string






40. To get over quotation marks while using arrays






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






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






43. EXtensible Markup Language






44. Active Server Pages






45. identity






46. Function used to round up to the highest integer






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


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






49. This error arises from misusing a function.






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