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 replace a substring with another string - it is not case-sensitive.






2. ____ or key is referred to for a value within an array.






3. An array of variables passed in the URL






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






5. To find how many substrings are in a string






6. Returns a character from a specified ASCII value






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






8. a database which is best supported by PHP






9. leading zero: 0100 or 0567






10. To get time data






11. Returns a string with backslashes in front of the specified characters






12. function Function used to create a random number






13. Use _______ for passwords or pages that would not be bookmarked or pages that require security.






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






15. bitwise right shift






16. Control structures that break exit






17. Used to display errors in a particular script - should be placed at top of script.

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


18. Active Server Pages






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






20. equivalence






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






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






23. All variables must begin with _________.






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






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






26. To determine the amount of elements in an array






27. To assign keys to the values in an array






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






29. bitwise AND






30. To iterate over the values of an array






31. What You See Is What You Get






32. To reset an array _______ the array() function to the array






33. print $_SERVER will _____ work if you use the print function on arrays.






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






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






36. Asynchronous Javascript And XML






37. any programing language where the script is parsed on the server






38. Used to find the amount of words in a string.






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






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






41. To declare a constant






42. Hyper Text Transfer Protocol






43. To merge arrays






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






45. The name of the #! used to designate the location of the PHP binary






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






47. To create an array






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






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






50. identity