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. To set up error reporting






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






3. To sort values of an array without regard to the keys






4. Hyper Text Markup Language






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






6. equivalence






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






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






9. The syntax for connecting to a database






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






11. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead






12. used to round numeric values.






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






14. Control structures that break exit






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






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






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






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






19. This will show all error reporting.






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






21. An array of variables passed in the URL






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






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






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






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






26. Used to encrypt values - it is a one-way encryption method






27. bitwise left shift






28. container of ordered data elements






29. Standard Generalized Markup Language






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






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






32. Creates a pointer to a file with the declared mode (read - write -etc.).






33. To declare a constant






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






35. This fatal error arises from memory allocation problem.






36. To check if a constant is already declared






37. The concatenation assignment operator?






38. TRUE or FALSE






39. Search Engine Optimization






40. signed integer






41. $_POST and $_GET are ________ variables.






42. To refer to an item in an array






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






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






45. allows you to split strings based on more complex rules






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






47. To include files - _______ will give errors and _________ will terminate execution().






48. Alias of rtrim()






49. To remove all HTML and PHP tags.






50. _____ is a logical operator