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. Returns a string with backslashes in front of predefined characters






2. This error refers to a variable with no value.






3. The concatenation operator?






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






5. The order of operations.






6. To close a connection between a database






7. does a certain action when called upon






8. To get over quotation marks while using arrays






9. Define(NAME,value)






10. signed integer






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






12. Hyper Text Transfer Protocol






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






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






15. To declare a constant






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






17. To remove all HTML and PHP tags.






18. To assign keys to the values in an array






19. Leading 0x: 0x13F or 0xA23






20. Active Server Pages






21. This error arises from misusing a function.






22. Use ________ to have multiple quotations in one string






23. bitwise AND






24. Tag to end a php script






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






26. Function can you use to format a number with commas






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






28. The syntax for connecting to a database






29. $_POST and $_GET are ________ variables.






30. Search Engine Optimization






31. bitwise XOR






32. container of both data and code






33. a language in which to make querys to a database with






34. An array of variables passed in the URL






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






36. $_SERVER is a ________ variable.






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






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






39. To determine the amount of elements in an array






40. Tag to begin a php script






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






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


43. Operators used to operate and assign






44. To put a dollar sign before a variable like $10 where 10 is the variable's value - you can escape the first dollar sign; $$cost; or you can use __________.






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






46. Hyper Text Markup Language






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






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






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






50. A data structure that can hold a number of items of data of the same type eg. a list of names