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. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.






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






3. The concatenation operator?






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






5. Returns a character from a specified ASCII value






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






7. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.






8. To close a connection between a database






9. The prefix for a dynamic variable - also known as a variable variable






10. Used to find the length of a string






11. An array of variables passed in the URL






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






13. TRUE or FALSE






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






15. To iterate over the values of an array






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






17. Operators used to operate and assign






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






19. To remove all HTML and PHP tags.






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






21. signed integer






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






23. used to round numeric values.






24. To merge arrays






25. Function used to round up to the highest integer






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






27. allows you to split strings based on more complex rules






28. $_POST and $_GET are ________ variables.






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






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






31. Search Engine Optimization






32. Define(NAME,value)






33. Function used to round down to the lowest integer






34. Variable names can begin with __________






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






36. ___________ can be used with substr() to count backward






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






38. Shorthand used to increment and decrement






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






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






41. Use ________ to have multiple quotations in one string






42. Used to convert certain HTML tags into their entity versions.






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






44. To counter htmlentities()






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






46. a positive or negative number






47. identity






48. collection of binary data






49. bitwise right shift






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