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. Used to find the length of a string






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






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






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






5. A conditional or loop is a ________________.






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






7. returns the number of matches found by a given search string under this format...






8. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update






9. This will show all errors that fall under E_ALL or E_STRICT - the pipe | is used for 'or' so that errors that fall under either will be shown.






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






11. To iterate over the values of an array






12. Active Server Pages






13. EXtensible Markup Language






14. identity






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






16. signed floating-point value






17. To create an array






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






19. Tag to begin a php script






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






21. When used the value can be passed safely through the URL (GET).






22. To sort values of an array in reversed order






23. The concatenation assignment operator?






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






25. To get time data






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






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






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






29. a type with two possible values: true and false






30. $_POST and $_GET are ________ variables.






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






32. The syntax for connecting to a database






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






34. The order of operations.






35. Returns a character from a specified ASCII value






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






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


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






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






40. bitwise right shift






41. $_SERVER is a ________ variable.






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






43. Function used to round down to the lowest integer






44. Standard Generalized Markup Language






45. standard notation






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






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






48. Hyper Text Transfer Protocol






49. This error arises from misusing a function.






50. To assign array element values to individual variables