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. $_POST Data sent using POST found is sent to _______






2. leading zero: 0100 or 0567






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






4. This error arises from misusing a function.






5. Standard Generalized Markup Language






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






7. Use ________ to have multiple quotations in one string






8. bitwise XOR






9. addition






10. 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 __________.






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






12. The concatenation operator?






13. To get time data






14. standard notation






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






16. An array whose keys are numbers.






17. Converts a string of ASCII characters to hexadecimal values






18. Operators used to operate and assign






19. To close a connection between a database






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






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






22. An array of variables passed with <input /> data






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






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






25. collection of binary data






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






27. Define(NAME,value)






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






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






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






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






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






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






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






35. Function used to round down to the lowest integer






36. bitwise AND






37. The order of operations.






38. signed floating-point value






39. used to round numeric values.






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






41. To refer to an item in an array






42. The syntax for connecting to a database






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






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






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






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






47. To counter htmlentities()






48. equivalence






49. Creates a pointer to a file with the declared mode (read - write -etc.).






50. a positive or negative number