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. An array of variables passed with <input /> data






2. To find how many substrings are in a string






3. Standard Generalized Markup Language






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






5. To get time data






6. Used to check if a variable has any value (including 0 or FALSE or an empty string).






7. equivalence






8. Tag to end a php script






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






10. To check if a constant is already declared






11. The syntax for connecting to a database






12. To declare a constant






13. Define(NAME,value)






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






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


16. Used to find the length of a string






17. identity






18. To assign keys to the values in an array






19. $_POST and $_GET are ________ variables.






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






21. To close a connection between a database






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






23. container of ordered data elements






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






25. Use ________ to have multiple quotations in one string






26. Document Type Definitions






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






28. Leading 0x: 0x13F or 0xA23






29. All variables must begin with _________.






30. container of both data and code






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






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






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






34. Variable names can begin with __________






35. The output of var_export((float)array());






36. $_SERVER is a ________ variable.






37. A conditional or loop is a ________________.






38. To sort the values while maintaining the correlation between each value and its key - in reversed order






39. ____ or key is referred to for a value within an array.






40. Shorthand used to increment and decrement






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






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






43. any programing language where the script is parsed on the server






44. To sort values of an array in reversed order






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






46. signed floating-point value






47. This will show all error reporting.






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






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






50. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.