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. addition






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






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






4. The syntax for connecting to a database






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






6. PHP has two conditional: if and ______.






7. $_POST and $_GET are ________ variables.






8. a storage location in the computer's memory that has a type & a name and a contents






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






10. The prefix for a dynamic variable - also known as a variable variable






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






12. bitwise XOR






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






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






15. Hyper Text Transfer Protocol






16. signed floating-point value






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






18. To refer to an item in an array






19. bitwise left shift






20. To set up error reporting






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






22. Converts a string of ASCII characters to hexadecimal values






23. _______ is a comparison operator






24. Used to find the length of a string






25. The concatenation operator?






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






27. To iterate over the values of an array






28. Function used to round down to the lowest integer






29. An array whose keys are numbers.






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






31. To assign array element values to individual variables






32. To get over quotation marks while using arrays






33. To check if a constant is already declared






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






35. All variables must begin with _________.






36. To find how many substrings are in a string






37. EXtensible Markup Language






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






39. Shorthand used to increment and decrement






40. equivalence






41. To merge arrays






42. To word wrap after a certain amount of characters.






43. identity






44. Uses two arguments: constant name and constant definition






45. function Function used to create a random number






46. does a certain action when called upon






47. This fatal error arises from memory allocation problem.






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






49. This error arises from misusing a function.






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