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. An array whose keys are numbers.






2. To counter htmlentities()






3. equivalence






4. Control structure that continue exit - they perform specific statements for a determined number of iterations.






5. This will show all error reporting.






6. Operators used to operate and assign






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






8. _________ can be used in conditional statements to set precedence






9. addition






10. container of ordered data elements






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






12. Use ______ for search engines or catalogued pages or pages that would be bookmarked.






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






14. bitwise AND






15. collection of binary data






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






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






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






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






20. Tag to begin a php script






21. Standard Generalized Markup Language






22. An array of variables passed in the URL






23. $_POST and $_GET are ________ variables.






24. bitwise left shift






25. a positive or negative number






26. This will show all error reporting except for notice errors.






27. The syntax for connecting to a database






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






29. function Function used to create a random number






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






31. Returns a character from a specified ASCII value






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






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






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






35. Uses two arguments: constant name and constant definition






36. To sort the values while maintaining the correlation between each value and its key






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






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






39. Variable names can begin with __________






40. signed integer






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






42. Function used to round down to the lowest integer






43. What You See Is What You Get






44. bitwise XOR






45. TRUE or FALSE






46. EXtensible Markup Language






47. To create an array






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






49. $_POST Data sent using POST found is sent to _______






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