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 error arises from misusing a function.






2. To iterate over the keys and values of an array






3. Control structures that break exit






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






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






6. any programing language where the user must support the language the script is written in






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






8. Function that contains the highest value that rand() can have randomly






9. equivalence






10. signed floating-point value






11. leading zero: 0100 or 0567






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






13. To set up error reporting






14. To reorganise the array randomly






15. To refer to an item in an array






16. To declare a constant






17. $_POST and $_GET are ________ variables.






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






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






20. PHP has two conditional: if and ______.






21. To iterate over the values of an array






22. EXtensible Markup Language






23. The name of the #! used to designate the location of the PHP binary






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






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






26. The order of operations.






27. _______ is a comparison operator






28. Converts a string of ASCII characters to hexadecimal values






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






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






31. Function used to round up to the highest integer






32. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update






33. Returns a character from a specified ASCII value






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






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






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






37. signed integer






38. Define(NAME,value)






39. Variable names can begin with __________






40. standard notation






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






42. Use ________ to have multiple quotations in one string






43. Function used to round down to the lowest integer






44. Shorthand used to increment and decrement






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






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






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






48. A conditional or loop is a ________________.






49. An array whose keys are numbers.






50. _________ can be used in conditional statements to set precedence