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. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead






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






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






4. container of both data and code






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






6. bitwise XOR






7. Variable names cannot begin with _______






8. TRUE or FALSE






9. collection of binary data






10. a positive or negative number






11. To check if a constant is already declared






12. signed integer






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






14. This will show all error reporting.






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






16. To sort the values while maintaining the correlation between each value and its key






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






18. The prefix for a dynamic variable - also known as a variable variable






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






20. the most basic function in PHP used to output information to the page






21. Standard Generalized Markup Language






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






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






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






25. Used to create a substring (referred to as a token) from a larger string






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






27. All variables must begin with _________.






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






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






30. bitwise left shift






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






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






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






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






35. Function used to round up to the highest integer






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






37. To remove all HTML and PHP tags.






38. To close a connection between a database






39. addition






40. The four main error types are:Notice - Warning - ________ and Error.






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






42. Active Server Pages






43. This error arises from misusing a function.






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






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






46. equivalence






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






48. To counter htmlentities()






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






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