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. To iterate over the values of an array






2. a language in which to make querys to a database with






3. To merge arrays






4. a type with two possible values: true and false






5. The concatenation operator?






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






7. To counter htmlentities()






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






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






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






11. Used to check if a variable has any value (including 0 or FALSE or an empty string).






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






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






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






15. This fatal error arises from memory allocation problem.






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






17. Variable names cannot begin with _______






18. EXtensible Markup Language






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






20. To set up error reporting






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






22. Used to encrypt values - it is a one-way encryption method






23. $_SERVER is a ________ variable.






24. Used to find the length of a string






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






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


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






28. To check if a constant is already declared






29. bitwise left shift






30. collection of binary data






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






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






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






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






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






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






37. To close a connection between a database






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






39. To find how many substrings are in a string






40. The order of operations.






41. To get over quotation marks while using arrays






42. Used to create a substring (referred to as a token) from a larger string






43. a database which is best supported by PHP






44. To create an array






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






46. To refer to an item in an array






47. To declare a constant






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






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






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