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






2. Used to convert all HTML tags into their entity versions.






3. Function used to round down to the lowest integer






4. leading zero: 0100 or 0567






5. _____ is a logical operator






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






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






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






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






10. To put a dollar sign before a variable like $10 where 10 is the variable's value - you can escape the first dollar sign; $$cost; or you can use __________.






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






12. The order of operations.






13. To iterate over the values of an array






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






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






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






17. Search Engine Optimization






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






19. To close a connection between a database






20. An array whose keys are numbers.






21. container of both data and code






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






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






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






25. Active Server Pages






26. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.






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






28. bitwise left shift






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






30. To reorganise the array randomly






31. To iterate over the keys and values of an array






32. Use ______ when a variable contains any amount of variables; in general.






33. A data structure that can hold a number of items of data of the same type eg. a list of names






34. addition






35. Standard Generalized Markup Language






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






37. To set up error reporting






38. EXtensible Markup Language






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






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






41. To find how many substrings are in a string






42. Variable names can begin with __________






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






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






45. Operators used to operate and assign






46. signed integer






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






48. To refer to an item in an array






49. To counter htmlentities()






50. What You See Is What You Get