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. Converts a string of ASCII characters to hexadecimal values






2. Leading 0x: 0x13F or 0xA23






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






4. Similar to mysql_fetch_array() - but cannot be accessed by integer offset






5. EXtensible Markup Language






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






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






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






9. Tag to end a php script






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






11. bitwise XOR






12. $_SERVER is a ________ variable.






13. Alias of rtrim()






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






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






16. A conditional or loop is a ________________.






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






18. a database which is best supported by PHP






19. Function used to round down to the lowest integer






20. To determine the amount of elements in an array






21. What You See Is What You Get






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






23. Define(NAME,value)






24. Document Type Definitions






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






26. To assign array element values to individual variables






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






28. Variable names can begin with __________






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






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






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






32. does a certain action when called upon






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






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






35. The concatenation operator?






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






37. PHP has two conditional: if and ______.






38. Use ________ to have multiple quotations in one string






39. To include files - _______ will give errors and _________ will terminate execution().






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






41. The ouput of var_export((bool)"NULL");






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






43. Used to convert all HTML tags into their entity versions.






44. An array of variables passed in the URL






45. To get time data






46. This will show all error reporting.






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






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






49. To merge arrays






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