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. Tag to end a php script






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






3. either hasn't yet been set or is assigned NULL value






4. standard notation






5. returns the number of matches found by a given search string under this format...






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






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






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






9. $_SERVER is a ________ variable.






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






11. To refer to an item in an array






12. An array whose keys are numbers.






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






14. Uses two arguments: constant name and constant definition






15. PHP has two conditional: if and ______.






16. Used to find the length of a string






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






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






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






20. The output of var_export((float)array(0));






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






22. EXtensible Markup Language






23. A conditional or loop is a ________________.






24. Active Server Pages






25. $_POST and $_GET are ________ variables.






26. Alias of rtrim()






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






28. Hyper Text Transfer Protocol






29. Standard Generalized Markup Language






30. Tag to begin a php script






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






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






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






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






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






36. What You See Is What You Get






37. All variables must begin with _________.






38. _______ is a comparison operator






39. Function used to round down to the lowest integer






40. Control structures that break exit






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






42. To reorganise the array randomly






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






44. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__






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






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






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






48. Hyper Text Markup Language






49. To sort values of an array in reversed order






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