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 find how many substrings are in a string






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






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






4. bitwise left shift






5. Control structures that break exit






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






7. Hyper Text Transfer Protocol






8. $_POST and $_GET are ________ variables.






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






10. bitwise XOR






11. Variable names can begin with __________






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






13. Function used to round up to the highest integer






14. Converts a string of ASCII characters to hexadecimal values






15. a positive or negative number






16. A data structure that can hold a number of items of data of the same type eg. a list of names






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






18. bitwise AND






19. All variables must begin with _________.






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






21. container of both data and code






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






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






24. Hyper Text Markup Language






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






26. Search Engine Optimization






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






28. addition






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






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






31. Used to convert all HTML tags into their entity versions.






32. To close a connection between a database






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






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






35. Returns a character from a specified ASCII value






36. used to round numeric values.






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






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






39. To declare a constant






40. To remove all HTML and PHP tags.






41. Used to convert certain HTML tags into their entity versions.






42. This fatal error arises from memory allocation problem.






43. container of ordered data elements






44. Use ________ to have multiple quotations in one string






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






46. Similar to mysql_fetch_array() - but cannot be accessed by integer offset






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






48. This error arises from misusing a function.






49. Define(NAME,value)






50. To iterate over the values of an array