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. standard notation






2. A conditional or loop is a ________________.






3. What You See Is What You Get






4. Tag to end a php script






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






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






7. TRUE or FALSE






8. To iterate over the values of an array






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






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






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






12. To remove all HTML and PHP tags.






13. All variables must begin with _________.






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






15. To get time data






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






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






18. Operators used to operate and assign






19. An array of variables passed in the URL






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






21. bitwise right shift






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






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






24. a positive or negative number






25. Document Type Definitions






26. To close a connection between a database






27. $_SERVER is a ________ variable.






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






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






30. Tag to begin a php script






31. To determine the amount of elements in an array






32. Hyper Text Markup Language






33. To counter htmlentities()






34. The syntax for connecting to a database






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






36. An array whose keys are numbers.






37. Alias of rtrim()






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






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






40. To set up error reporting






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






42. Control structures that break exit






43. Function used to round up to the highest integer






44. bitwise AND






45. The order of operations.






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






47. PHP has two conditional: if and ______.






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






49. Hyper Text Transfer Protocol






50. To assign array element values to individual variables