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. container of ordered data elements






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






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






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






5. A conditional or loop is a ________________.






6. addition






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






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






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






10. Variable names can begin with __________






11. identity






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






13. Function used to round up to the highest integer






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






15. To sort values of an array in reversed order






16. Operators used to operate and assign






17. Used to display errors in a particular script - should be placed at top of script.


18. To get over quotation marks while using arrays






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






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






21. To remove all HTML and PHP tags.






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






23. This will show all error reporting.






24. does a certain action when called upon






25. Uses two arguments: constant name and constant definition






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






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






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






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






30. Define(NAME,value)






31. Asynchronous Javascript And XML






32. To declare a constant






33. To determine the amount of elements in an array






34. $_SERVER is a ________ variable.






35. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;






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






37. Hyper Text Transfer Protocol






38. The concatenation operator?






39. EXtensible Markup Language






40. Used to find the length of a string






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






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






43. Hyper Text Markup Language






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






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






46. function Function used to create a random number






47. An array whose keys are numbers.






48. bitwise AND






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






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