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






2. A conditional or loop is a ________________.






3. To check if a constant is already declared






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






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






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






7. To counter htmlentities()






8. Used to find the length of a string






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






10. To reorganise the array randomly






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






12. container of ordered data elements






13. To refer to an item in an array






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






15. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;






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






17. TRUE or FALSE






18. bitwise XOR






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






20. Shorthand used to increment and decrement






21. Used to convert certain HTML tags into their entity versions.






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






23. bitwise left shift






24. To assign array element values to individual variables






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






26. Tag to end a php script






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






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






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






30. signed integer






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






32. Alias of rtrim()






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






34. The concatenation operator?






35. Leading 0x: 0x13F or 0xA23






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






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






38. This error arises from misusing a function.






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






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






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






42. used to round numeric values.






43. Variable names can begin with __________






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






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






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






47. Search Engine Optimization






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






49. a database which is best supported by PHP






50. What You See Is What You Get