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. Variable names cannot begin with _______






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


3. Returns a character from a specified ASCII value






4. An array of variables passed in the URL






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






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






7. To word wrap after a certain amount of characters.






8. To check if a constant is already declared






9. This will show all error reporting.






10. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;






11. $_SERVER is a ________ variable.






12. leading zero: 0100 or 0567






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






14. A data structure that can hold a number of items of data of the same type eg. a list of names






15. bitwise right shift






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






17. Hyper Text Transfer Protocol






18. To find how many substrings are in a string






19. identity






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






21. To get over quotation marks while using arrays






22. Uses two arguments: constant name and constant definition






23. A conditional or loop is a ________________.






24. used to round numeric values.






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






26. Leading 0x: 0x13F or 0xA23






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






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






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






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






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






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






33. This error arises from misusing a function.






34. To set up error reporting






35. TRUE or FALSE






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






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






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






39. a positive or negative number






40. To merge arrays






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






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






43. function Function used to create a random number






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






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






46. _____ is a logical operator






47. An array whose keys are numbers.






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






49. Variable names can begin with __________






50. To remove all HTML and PHP tags.