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. a line of information that can be stored in a variable or used in a function or statement






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






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






4. says 'if' this then do this 'else' do this or 'while' this do this






5. The three types of loops in PHP are: for - while - ____.






6. What You See Is What You Get






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






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






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






10. This error arises from misusing a function.






11. This fatal error arises from memory allocation problem.






12. Asynchronous Javascript And XML






13. container of ordered data elements






14. Alias of rtrim()






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






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






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






18. a language in which to make querys to a database with






19. To determine the amount of elements in an array






20. EXtensible Markup Language






21. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.






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






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






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






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






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






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






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






29. To assign array element values to individual variables






30. All variables must begin with _________.






31. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED






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






33. To remove all HTML and PHP tags.






34. Operators used to operate and assign






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






36. To create an array






37. To get over quotation marks while using arrays






38. To declare a constant






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






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






41. Active Server Pages






42. standard notation






43. To merge arrays






44. Shorthand used to increment and decrement






45. To sort values of an array in reversed order






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






47. function Function used to create a random number






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






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






50. Function used to round down to the lowest integer