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 determine the amount of elements in an array






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






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






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






5. Control structures that break exit






6. To assign array element values to individual variables






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






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






9. To counter htmlentities()






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






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






12. Document Type Definitions






13. Search Engine Optimization






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






15. addition






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






17. To get time data






18. bitwise XOR






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






20. TRUE or FALSE






21. _____ is a logical operator






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






23. Function used to round down to the lowest integer






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






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






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






27. bitwise right shift






28. Uses two arguments: constant name and constant definition






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






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






31. standard notation






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






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






34. function Function used to create a random number






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






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






37. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED






38. Function can you use to format a number with commas






39. Returns a string with backslashes in front of the specified characters






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






41. identity






42. The order of operations.






43. Converts a string of ASCII characters to hexadecimal values






44. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.






45. The concatenation assignment operator?






46. _______ is a comparison operator






47. Use ________ to have multiple quotations in one string






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






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






50. used to round numeric values.