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. a storage location in the computer's memory that has a type & a name and a contents






2. collection of binary data






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






4. Standard Generalized Markup Language






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






6. To set up error reporting






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






8. Hyper Text Transfer Protocol






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






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






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






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






13. To assign array element values to individual variables






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






15. Define(NAME,value)






16. does a certain action when called upon






17. The syntax for connecting to a database






18. PHP has two conditional: if and ______.






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






20. a type with two possible values: true and false






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






22. This error arises from misusing a function.






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






24. the most basic function in PHP used to output information to the page






25. Search Engine Optimization






26. Used to find the length of a string






27. The order of operations.






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






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






30. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED






31. To sort values of an array in reversed order






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






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






34. Alias of rtrim()






35. To refer to an item in an array






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






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






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






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






40. EXtensible Markup Language






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






42. Hyper Text Markup Language






43. An array whose keys are numbers.






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






45. Operators used to operate and assign






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






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






48. To reorganise the array randomly






49. All variables must begin with _________.






50. This fatal error arises from memory allocation problem.