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. To declare a constant






2. To sort values of an array in reversed order






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






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






5. Variable names cannot begin with _______






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






7. To refer to an item in an array






8. To iterate over the values of an array






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






10. Uses two arguments: constant name and constant definition






11. Alias of rtrim()






12. The syntax for connecting to a database






13. To set up error reporting






14. bitwise AND






15. To assign keys to the values in an array






16. container of ordered data elements






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






18. TRUE or FALSE






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






20. Used to check if a variable has any value (including 0 or FALSE or an empty string).






21. To close a connection between a database






22. To delete a variable or an element of an array






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






24. To check if a constant is already declared






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






26. bitwise right shift






27. signed integer






28. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED






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






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






31. Variable names can begin with __________






32. To get over quotation marks while using arrays






33. used to round numeric values.






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






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






36. Leading 0x: 0x13F or 0xA23






37. Hyper Text Markup Language






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






39. a positive or negative number






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






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






42. Used to find the length of a string






43. To find how many substrings are in a string






44. collection of binary data






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






46. Asynchronous Javascript And XML






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






48. Tag to begin a php script






49. does a certain action when called upon






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