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. a language in which to make querys to a database with






2. Creates a pointer to a file with the declared mode (read - write -etc.).






3. used to round numeric values.






4. $_POST and $_GET are ________ variables.






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






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






7. identity






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






9. The concatenation assignment operator?






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






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






12. The order of operations.






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






14. The array that stores variables specific to a user's visit






15. To refer to an item in an array






16. To sort by the keys while maintaining the correlation between the key and its value






17. Variable names can begin with __________






18. $_SERVER is a ________ variable.






19. To check if a constant is already declared






20. leading zero: 0100 or 0567






21. Tag to end a php script






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






23. What You See Is What You Get






24. Uses two arguments: constant name and constant definition






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






26. Online applications and resources which are available to the general public with very few restrictions






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






28. _______ is a comparison operator






29. a line of information that can be stored in a variable or used in a function or statement






30. This fatal error arises from memory allocation problem.






31. Variable names cannot begin with _______






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






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






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






35. A conditional or loop is a ________________.






36. standard notation






37. function Function used to create a random number






38. Search Engine Optimization






39. container of ordered data elements






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






41. All variables must begin with _________.






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






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






44. bitwise XOR






45. a database which is best supported by PHP






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






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






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






49. Converts a string of ASCII characters to hexadecimal values






50. Define(NAME,value)