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 close a connection between a database






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






3. equivalence






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






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






6. Used to find the length of a string






7. Converts a string of ASCII characters to hexadecimal values






8. A conditional or loop is a ________________.






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






10. To find how many substrings are in a string






11. Alias of rtrim()






12. The syntax for connecting to a database






13. leading zero: 0100 or 0567






14. Used to check if a variable has any value (including 0 or FALSE or an empty string).






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






16. PHP has two conditional: if and ______.






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






18. function Function used to create a random number






19. Asynchronous Javascript And XML






20. Function used to round down to the lowest integer






21. addition






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






23. Leading 0x: 0x13F or 0xA23






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






25. container of both data and code






26. Returns a character from a specified ASCII value






27. What You See Is What You Get






28. bitwise XOR






29. To get over quotation marks while using arrays






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


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






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






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






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






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






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






37. Tag to begin a php script






38. To sort the values while maintaining the correlation between each value and its key






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






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






41. All variables must begin with _________.






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






43. a database which is best supported by PHP






44. either hasn't yet been set or is assigned NULL value






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






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






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






48. The output of var_export((float)array(0));






49. To iterate over the values of an array






50. Variable names can begin with __________