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 get time data






2. To iterate over the values of an array






3. 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


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






5. PHP has two conditional: if and ______.






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






7. To get over quotation marks while using arrays






8. Function that contains the highest value that rand() can have randomly






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






10. This will not show error reporting - it will be turned off.






11. does a certain action when called upon






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






13. To declare a constant






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






15. identity






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






17. What You See Is What You Get






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






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






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






21. Returns a character from a specified ASCII value






22. To determine the amount of elements in an array






23. bitwise AND






24. To assign keys to the values in an array






25. Alias of rtrim()






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






27. leading zero: 0100 or 0567






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






29. bitwise XOR






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






31. Active Server Pages






32. Document Type Definitions






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






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






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






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






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






38. Uses two arguments: constant name and constant definition






39. equivalence






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






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






42. Use ________ to have multiple quotations in one string






43. An array whose keys are numbers.






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






45. Search Engine Optimization






46. Hyper Text Transfer Protocol






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






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






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






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