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. Document Type Definitions






2. All variables must begin with _________.






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






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






5. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead






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






7. signed floating-point value






8. An array of variables passed with <input /> data






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






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






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






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






13. Use ________ to have multiple quotations in one string






14. bitwise XOR






15. Tag to begin a php script






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






17. a database which is best supported by PHP






18. To sort values of an array in reversed order






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






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






21. This error arises from misusing a function.






22. To remove all HTML and PHP tags.






23. An array whose keys are numbers.






24. An array of variables passed in the URL






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






26. Alias of rtrim()






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






28. To reorganise the array randomly






29. To get over quotation marks while using arrays






30. Used to find the amount of words in a string.






31. To merge arrays






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






33. To assign array element values to individual variables






34. To assign keys to the values in an array






35. leading zero: 0100 or 0567






36. identity






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






38. used to round numeric values.






39. Tag to end a php script






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






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






42. the most basic function in PHP used to output information to the page






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






44. Function used to round down to the lowest integer






45. allows you to split strings based on more complex rules






46. Uses two arguments: constant name and constant definition






47. This error refers to a variable with no value.






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






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






50. $_POST and $_GET are ________ variables.