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






2. signed floating-point value






3. container of ordered data elements






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






5. Alias of rtrim()






6. leading zero: 0100 or 0567






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






8. ____ or key is referred to for a value within an array.






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






10. TRUE or FALSE






11. bitwise left shift






12. To put a dollar sign before a variable like $10 where 10 is the variable's value - you can escape the first dollar sign; $$cost; or you can use __________.






13. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.






14. To close a connection between a database






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






16. Asynchronous Javascript And XML






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






18. To assign array element values to individual variables






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






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






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






22. To merge arrays






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






24. bitwise XOR






25. any programing language where the user must support the language the script is written in






26. Hyper Text Markup Language






27. Variable names can begin with __________






28. To reset an array _______ the array() function to the array






29. Use ________ to have multiple quotations in one string






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






31. To create an array






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






33. To assign keys to the values in an array






34. Leading 0x: 0x13F or 0xA23






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






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






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






38. Variable names cannot begin with _______






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






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






41. equivalence






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






43. This will show all error reporting.






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






45. To find how many substrings are in a string






46. Used to find the length of a string






47. Document Type Definitions






48. Function used to round down to the lowest integer






49. The concatenation assignment operator?






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