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. allows you to split strings based on more complex rules






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






3. Alias of rtrim()






4. To get time data






5. _____ is a logical operator






6. To create an array






7. Active Server Pages






8. Used to check if a variable has a valid numerical value; strings with numerical values pass.






9. The syntax for connecting to a database






10. This will not show error reporting - it will be turned off.






11. A conditional or loop is a ________________.






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






13. To merge arrays






14. _______ is a comparison operator






15. The concatenation operator?






16. To set up error reporting






17. Function used to round up to the highest integer






18. To assign keys to the values in an array






19. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.






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






21. An array of variables passed in the URL






22. ___________ can be used with substr() to count backward






23. $_SERVER is a ________ variable.






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






25. The concatenation assignment operator?






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






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






28. Used to find the length of a string






29. Use ______ for search engines or catalogued pages or pages that would be bookmarked.






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






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






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






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






34. leading zero: 0100 or 0567






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






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






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






38. Define(NAME,value)






39. The output of var_export((float)array());






40. a positive or negative number






41. Hyper Text Transfer Protocol






42. To get over quotation marks while using arrays






43. To close a connection between a database






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






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






46. To sort values of an array in reversed order






47. bitwise right shift






48. To find how many substrings are in a string






49. a database which is best supported by PHP






50. An array whose keys are numbers.