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. An array of variables passed in the URL






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






3. The syntax for connecting to a database






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






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






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






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






8. the most basic function in PHP used to output information to the page






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






10. a positive or negative number






11. This will show all error reporting.






12. PHP has two conditional: if and ______.






13. Leading 0x: 0x13F or 0xA23






14. Variable names cannot begin with _______






15. To reorganise the array randomly






16. identity






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






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






19. Variable names can begin with __________






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






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






22. Function used to round up to the highest integer






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






24. equivalence






25. To refer to an item in an array






26. does a certain action when called upon






27. Hyper Text Markup Language






28. This error arises from misusing a function.






29. addition






30. To remove all HTML and PHP tags.






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






32. collection of binary data






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






34. bitwise left shift






35. To counter htmlentities()






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






37. To merge arrays






38. To set up error reporting






39. Used to create a substring (referred to as a token) from a larger string






40. This fatal error arises from memory allocation problem.






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






42. To check if a constant is already declared






43. To determine the amount of elements in an array






44. used to round numeric values.






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






46. To iterate over the values of an array






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






48. a database which is best supported by PHP






49. To get time data






50. Document Type Definitions