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. Alias of rtrim()






2. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.






3. To reorganise the array randomly






4. Shorthand used to increment and decrement






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






6. any programing language where the user must support the language the script is written in






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






8. Document Type Definitions






9. _______ is a comparison operator






10. To iterate over the values of an array






11. leading zero: 0100 or 0567






12. container of both data and code






13. An array whose keys are numbers.






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






15. To close a connection between a database






16. used to round numeric values.






17. bitwise right shift






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






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






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






21. To reset an array _______ the array() function to the array






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






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






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






25. Used to find the length of a string






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






27. Leading 0x: 0x13F or 0xA23






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






29. To assign keys to the values in an array






30. This will show all error reporting.






31. Use ________ to have multiple quotations in one string






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






33. The ouput of var_export((bool)"NULL");






34. EXtensible Markup Language






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






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






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






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






39. The syntax for connecting to a database






40. Uses two arguments: constant name and constant definition






41. Returns a character from a specified ASCII value






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






43. 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.






44. To merge arrays






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






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






47. To assign array element values to individual variables






48. To check if a constant is already declared






49. Similar to mysql_fetch_array() - but cannot be accessed by integer offset






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