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. Shorthand used to increment and decrement






2. $_SERVER is a ________ variable.






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






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






5. To close a connection between a database






6. equivalence






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






8. Hyper Text Transfer Protocol






9. bitwise AND






10. identity






11. To counter htmlentities()






12. bitwise XOR






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






14. _______ is a comparison operator






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






16. To assign keys to the values in an array






17. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.






18. Variable names cannot begin with _______






19. Used to convert certain HTML tags into their entity versions.






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






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






22. Define(NAME,value)






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






24. Active Server Pages






25. standard notation






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






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






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






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






30. bitwise left shift






31. Function that contains the highest value that rand() can have randomly






32. Alias of rtrim()






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






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






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






36. An array of variables passed in the URL






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






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






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






40. To assign array element values to individual variables






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






42. All variables must begin with _________.






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






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






45. To get time data






46. Hypertext Preprocessor - a server-side programing language used to create webpages






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






48. signed floating-point value






49. This error arises from misusing a function.






50. To determine the amount of elements in an array