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 set up error reporting






2. _______ is a comparison operator






3. a positive or negative number






4. The order of operations.






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






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






7. Leading 0x: 0x13F or 0xA23






8. To create an array






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






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






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






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






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






14. leading zero: 0100 or 0567






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






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






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






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






19. Function used to round up to the highest integer






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






21. Tag to end a php script






22. Control structures that break exit






23. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.






24. Search Engine Optimization






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






26. To remove all HTML and PHP tags.






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






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






29. $_SERVER is a ________ variable.






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






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






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






33. Tag to begin a php script






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






35. Document Type Definitions






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






37. To assign keys to the values in an array






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






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






40. Returns a character from a specified ASCII value






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






42. To include files - _______ will give errors and _________ will terminate execution().






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






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






45. To get over quotation marks while using arrays






46. Asynchronous Javascript And XML






47. addition






48. function Function used to create a random number






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






50. Used to replace a substring with another string - it is not case-sensitive.