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 not show error reporting - it will be turned off.






2. To get time data






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






4. signed floating-point value






5. Hyper Text Markup Language






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






7. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.






8. bitwise left shift






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






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






11. To delete a variable or an element of an array






12. Hyper Text Transfer Protocol






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






14. PHP has two conditional: if and ______.






15. To append elements to an array - this will assign item to the next available index; associative arrays get messy.






16. To close a connection between a database






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






18. Tag to end a php script






19. To get over quotation marks while using arrays






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






21. To assign array element values to individual variables






22. To merge arrays






23. What You See Is What You Get






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






25. Used to convert all HTML tags into their entity versions.






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






27. Alias of rtrim()






28. Leading 0x: 0x13F or 0xA23






29. _______ is a comparison operator






30. container of ordered data elements






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






32. To refer to an item in an array






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






34. Operators used to operate and assign






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






36. This error arises from misusing a function.






37. ___________ can be used with substr() to count backward






38. EXtensible Markup Language






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






40. Variable names cannot begin with _______






41. a storage location in the computer's memory that has a type & a name and a contents






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






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






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






45. does a certain action when called upon






46. An array whose keys are strings; also known as a hash.






47. Returns a character from a specified ASCII value






48. equivalence






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






50. To assign keys to the values in an array