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. Function used to round up to the highest integer






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






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






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






5. To iterate over the values of an array






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






7. Search Engine Optimization






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






9. signed floating-point value






10. To close a connection between a database






11. a positive or negative number






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






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






14. To assign keys to the values in an array






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






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






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






18. $_SERVER is a ________ variable.






19. Tag to begin a php script






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






21. bitwise XOR






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






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






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






25. A conditional or loop is a ________________.






26. $_POST and $_GET are ________ variables.






27. signed integer






28. An array of variables passed in the URL






29. Hyper Text Markup Language






30. To merge arrays






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






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






33. Control structures that break exit






34. This error arises from misusing a function.






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






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






37. Used to find the length of a string






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






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






40. What You See Is What You Get






41. Function used to round down to the lowest integer






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






43. Document Type Definitions






44. Define(NAME,value)






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






46. To sort the values while maintaining the correlation between each value and its key - in reversed order






47. Variable names cannot begin with _______






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






49. EXtensible Markup Language






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