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. To refer to an item in an array






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






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






4. To reorganise the array randomly






5. a positive or negative number






6. The concatenation assignment operator?






7. The array that stores variables specific to a user's visit






8. To assign keys to the values in an array






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






10. To determine the amount of elements in an array






11. Use ________ to have multiple quotations in one string






12. A conditional or loop is a ________________.






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






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






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






16. To remove all HTML and PHP tags.






17. a database which is best supported by PHP






18. Leading 0x: 0x13F or 0xA23






19. Alias of rtrim()






20. What You See Is What You Get






21. EXtensible Markup Language






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






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






24. Tag to begin a php script






25. used to round numeric values.






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






27. Uses two arguments: constant name and constant definition






28. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead






29. Search Engine Optimization






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






31. Standard Generalized Markup Language






32. To sort values of an array in reversed order






33. Use ______ when a variable contains any amount of variables; in general.






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






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






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






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






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






39. signed floating-point value






40. The order of operations.






41. Variable names can begin with __________






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






43. To merge arrays






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






45. leading zero: 0100 or 0567






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






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






48. bitwise XOR






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






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