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. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.






2. Search Engine Optimization






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






4. bitwise right shift






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






6. Function used to round down to the lowest integer






7. To assign array element values to individual variables






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






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






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






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






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






13. Document Type Definitions






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






15. EXtensible Markup Language






16. signed floating-point value






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






18. Standard Generalized Markup Language






19. This will show all errors that fall under E_ALL or E_STRICT - the pipe | is used for 'or' so that errors that fall under either will be shown.






20. Tag to begin a php script






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






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






23. To determine the amount of elements in an array






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






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






26. PHP has two conditional: if and ______.






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






28. The syntax for connecting to a database






29. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;






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






31. collection of binary data






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






33. To get over quotation marks while using arrays






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






35. Alias of rtrim()






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






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






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






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






40. Define(NAME,value)






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






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






43. a type with two possible values: true and false






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






45. $_POST and $_GET are ________ variables.






46. What You See Is What You Get






47. Shorthand used to increment and decrement






48. does a certain action when called upon






49. This fatal error arises from memory allocation problem.






50. To create an array