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. The prefix for a dynamic variable - also known as a variable variable






2. Leading 0x: 0x13F or 0xA23






3. To check if a constant is already declared






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






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






6. bitwise right shift






7. $_POST Data sent using POST found is sent to _______






8. container of ordered data elements






9. a database which is best supported by PHP






10. Hyper Text Markup Language






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






12. Define(NAME,value)






13. The concatenation assignment operator?






14. Use ________ to have multiple quotations in one string






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






16. What You See Is What You Get






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






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






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






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






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






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






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






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






25. standard notation






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






27. Document Type Definitions






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






29. PHP has two conditional: if and ______.






30. The order of operations.






31. bitwise left shift






32. An array of variables passed in the URL






33. Used to check if a variable has a valid numerical value; strings with numerical values pass.






34. Used to find the length of a string






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

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


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






37. _______ is a comparison operator






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






39. Function used to round down to the lowest integer






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






41. Active Server Pages






42. container of both data and code






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






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






45. This error arises from misusing a function.






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






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






48. Tag to end a php script






49. To set up error reporting






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