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 check if a given variable has an "empty" value - no value or 0 or FALSE.






2. All variables must begin with _________.






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






4. container of ordered data elements






5. bitwise left shift






6. To assign keys to the values in an array






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






8. To counter htmlentities()






9. To refer to an item in an array






10. collection of binary data






11. leading zero: 0100 or 0567






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






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






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






15. bitwise XOR






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






17. Active Server Pages






18. Uses two arguments: constant name and constant definition






19. Function used to find the absolute value of a number or numeric variable






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






21. _______ is a comparison operator






22. Define(NAME,value)






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






24. This fatal error arises from memory allocation problem.






25. This will show all error reporting.






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






27. The concatenation assignment operator?






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






29. equivalence






30. EXtensible Markup Language






31. signed floating-point value






32. Creates a pointer to a file with the declared mode (read - write -etc.).






33. a database which is best supported by PHP






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






35. Standard Generalized Markup Language






36. Control structures that break exit






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






38. To iterate over the values of an array






39. Variable names can begin with __________






40. _____ is a logical operator






41. To merge arrays






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






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






44. The concatenation operator?






45. The output of var_export((float)array());






46. PHP has two conditional: if and ______.






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






48. Use ______ when there are no variables in the string






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






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