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






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






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






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






5. Use ________ to have multiple quotations in one string






6. To check if a constant is already declared






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






8. Returns a character from a specified ASCII value






9. $_SERVER is a ________ variable.






10. The syntax for connecting to a database






11. This error arises from misusing a function.






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






13. function Function used to create a random number






14. This will show all error reporting.






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






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






17. To set up error reporting






18. Active Server Pages






19. Alias of rtrim()






20. To sort values of an array without regard to the keys






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






22. To declare a constant






23. Uses two arguments: constant name and constant definition






24. Used to find the length of a string






25. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;






26. To find how many substrings are in a string






27. Function used to round down to the lowest integer






28. To assign keys to the values in an array






29. bitwise XOR






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






31. bitwise right shift






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






33. a storage location in the computer's memory that has a type & a name and a contents






34. _____ is a logical operator






35. To sort values of an array in reversed order






36. standard notation






37. leading zero: 0100 or 0567






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






39. The name of the #! used to designate the location of the PHP binary






40. An array whose keys are numbers.






41. All variables must begin with _________.






42. Control structures that break exit






43. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.






44. collection of binary data






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






46. PHP has two conditional: if and ______.






47. bitwise AND






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






49. Returns a string with backslashes in front of the specified characters






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