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. To sort values of an array without regard to the keys






3. Control structures that break exit






4. signed integer






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






6. To get over quotation marks while using arrays






7. Variable names cannot begin with _______






8. leading zero: 0100 or 0567






9. To counter htmlentities()






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






11. To get time data






12. Asynchronous Javascript And XML






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






14. Used to display errors in a particular script - should be placed at top of script.


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






16. Uses two arguments: constant name and constant definition






17. Function used to round up to the highest integer






18. does a certain action when called upon






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






20. Alias of rtrim()






21. An array whose keys are numbers.






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






23. Variable names can begin with __________






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






25. allows you to split strings based on more complex rules






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






27. bitwise left shift






28. To reorganise the array randomly






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






30. To assign keys to the values in an array






31. function Function used to create a random number






32. To assign array element values to individual variables






33. bitwise XOR






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






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






36. To sort values of an array in reversed order






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






38. signed floating-point value






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






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






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






42. Tag to end a php script






43. container of both data and code






44. Use ______ when there are no variables in the string






45. bitwise AND






46. bitwise right shift






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






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






49. Returns a string with backslashes in front of predefined characters






50. A conditional or loop is a ________________.