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. Function used to round down to the lowest integer






2. This error arises from misusing a function.






3. Use ______ for search engines or catalogued pages or pages that would be bookmarked.






4. To set up error reporting






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






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






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






8. To counter htmlentities()






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






10. Hyper Text Markup Language






11. Leading 0x: 0x13F or 0xA23






12. bitwise right shift






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






14. $_SERVER is a ________ variable.






15. bitwise left shift






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






17. Asynchronous Javascript And XML






18. Function used to round up to the highest integer






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






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






21. equivalence






22. $_POST and $_GET are ________ variables.






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






24. To remove all HTML and PHP tags.






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






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






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






28. Define(NAME,value)






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






30. 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 __________.






31. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.






32. addition






33. All variables must begin with _________.






34. Tag to begin a php script






35. To close a connection between a database






36. leading zero: 0100 or 0567






37. To assign array element values to individual variables






38. To determine the amount of elements in an array






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






40. To reorganise the array randomly






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






42. To find how many substrings are in a string






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






44. Hyper Text Transfer Protocol






45. _______ is a comparison operator






46. bitwise AND






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






48. PHP has two conditional: if and ______.






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






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