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. a type with two possible values: true and false






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






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






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






5. Function used to round down to the lowest integer






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






7. To find how many substrings are in a string






8. To sort by the keys while maintaining the correlation between the key and its value






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






10. a line of information that can be stored in a variable or used in a function or statement






11. Active Server Pages






12. An array of variables passed in the URL






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






14. $_POST and $_GET are ________ variables.






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






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






17. To close a connection between a database






18. The name of the #! used to designate the location of the PHP binary






19. To counter htmlentities()






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






21. Used to find the length of a string






22. Shorthand used to increment and decrement






23. Tag to end a php script






24. All variables must begin with _________.






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






26. To iterate over the values of an array






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






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






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






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






31. EXtensible Markup Language






32. container of ordered data elements






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






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






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






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






37. Alias of rtrim()






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






39. Returns a character from a specified ASCII value






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






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






42. To sort values of an array in reversed order






43. leading zero: 0100 or 0567






44. An array whose keys are numbers.






45. To merge arrays






46. does a certain action when called upon






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






48. Variable names cannot begin with _______






49. To check if a constant is already declared






50. This will show all error reporting.