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. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.






2. To refer to an item in an array






3. Used to find the length of a string






4. To create an array






5. Document Type Definitions






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






7. signed floating-point value






8. Converts a string of ASCII characters to hexadecimal values






9. Function used to round up to the highest integer






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






11. To assign array element values to individual variables






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






13. To assign keys to the values in an array






14. container of both data and code






15. The order of operations.






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






17. Use ______ when there are no variables in the string






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






19. The syntax for connecting to a database






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






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






22. a database which is best supported by PHP






23. $_POST Data sent using POST found is sent to _______






24. searches the subject for matches to a given pattern replaced with the given replacement text






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






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






27. To determine the amount of elements in an array






28. Shorthand used to increment and decrement






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






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






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






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






33. To set up error reporting






34. An array of variables passed with <input /> data






35. Function used to round down to the lowest integer






36. used to round numeric values.






37. To declare a constant






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






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






40. An array whose keys are numbers.






41. Active Server Pages






42. To merge arrays






43. To find how many substrings are in a string






44. This will show all error reporting except for notice errors.






45. To word wrap after a certain amount of characters.






46. $_POST and $_GET are ________ variables.






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






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






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






50. The concatenation operator?







Sorry!:) No result found.

Can you answer 50 questions in 15 minutes?


Let me suggest you:



Major Subjects



Tests & Exams


AP
CLEP
DSST
GRE
SAT
GMAT

Most popular tests