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. Use ______ for search engines or catalogued pages or pages that would be bookmarked.






2. EXtensible Markup Language






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






4. standard notation






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






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


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






8. the most basic function in PHP used to output information to the page






9. The order of operations.






10. identity






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






12. Converts a string of ASCII characters to hexadecimal values






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






14. All variables must begin with _________.






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






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






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






18. To counter htmlentities()






19. To sort values of an array in reversed order






20. Control structures that break exit






21. Document Type Definitions






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






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






24. Define(NAME,value)






25. Search Engine Optimization






26. bitwise left shift






27. Hyper Text Markup Language






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






29. Tag to end a php script






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






31. A conditional or loop is a ________________.






32. signed floating-point value






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






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






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






36. To iterate over the keys and values of an array






37. To determine the amount of elements in an array






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






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






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






41. Function used to round up to the highest integer






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






43. Operators used to operate and assign






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






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






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






47. equivalence






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






49. Uses two arguments: constant name and constant definition






50. a database which is best supported by PHP