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. The concatenation operator?






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






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






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






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






6. Uses two arguments: constant name and constant definition






7. Search Engine Optimization






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






9. To get time data






10. Asynchronous Javascript And XML






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






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






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






14. bitwise left shift






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






16. To sort the values while maintaining the correlation between each value and its key






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






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






19. Tag to end a php script






20. The four main error types are:Notice - Warning - ________ and Error.






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






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






23. searches the subject for matches to a given pattern replaced with the given replacement text






24. To sort values of an array in reversed order






25. $_SERVER is a ________ variable.






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






27. bitwise right shift






28. Control structures that break exit






29. To assign keys to the values in an array






30. To create an array






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






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






33. Tag to begin a php script






34. Function used to round down to the lowest integer






35. The syntax for connecting to a database






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






37. To iterate over the values of an array






38. Control structure that continue exit - they perform specific statements for a determined number of iterations.






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






40. Returns a character from a specified ASCII value






41. To refer to an item in an array






42. To merge arrays






43. To check if a constant is already declared






44. This fatal error arises from memory allocation problem.






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






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






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






48. To get over quotation marks while using arrays






49. Use ________ to have multiple quotations in one string






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