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. Uses two arguments: constant name and constant definition






2. bitwise XOR






3. Converts a string of ASCII characters to hexadecimal values






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






5. To remove all HTML and PHP tags.






6. The syntax for connecting to a database






7. print $_SERVER will _____ work if you use the print function on arrays.






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






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






10. searches the subject for matches to a given pattern replaced with the given replacement text






11. Leading 0x: 0x13F or 0xA23






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






13. This will show all error reporting.






14. To reorganise the array randomly






15. Used to check if a variable has a valid numerical value; strings with numerical values pass.






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






17. container of both data and code






18. a language in which to make querys to a database with






19. signed integer






20. To merge arrays






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






22. Online applications and resources which are available to the general public with very few restrictions






23. Used to find the length of a string






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






25. Returns a character from a specified ASCII value






26. To get time data






27. When used the value can be passed safely through the URL (GET).






28. To sort values of an array without regard to the keys






29. An array of variables passed in the URL






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






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






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






33. a positive or negative number






34. Standard Generalized Markup Language






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






36. Search Engine Optimization






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






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






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






40. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__






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






42. A conditional or loop is a ________________.






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






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






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






46. To create an array






47. Hyper Text Markup Language






48. a type with two possible values: true and false






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






50. ___________ can be used with substr() to count backward