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. Converts a string of ASCII characters to hexadecimal values






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






3. PHP has two conditional: if and ______.






4. All variables must begin with _________.






5. To determine the amount of elements in an array






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






7. The syntax for connecting to a database






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






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






10. Tag to begin a php script






11. bitwise AND






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






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






14. To set up error reporting






15. Use ________ to have multiple quotations in one string






16. What You See Is What You Get






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






18. Variable names cannot begin with _______






19. Used to convert certain HTML tags into their entity versions.






20. Function used to round up to the highest integer






21. standard notation






22. To iterate over the values of an array






23. To remove all HTML and PHP tags.






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






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






26. Shorthand used to increment and decrement






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






28. To check if a constant is already declared






29. To assign array element values to individual variables






30. To refer to an item in an array






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






32. a database which is best supported by PHP






33. bitwise right shift






34. This error arises from misusing a function.






35. To assign keys to the values in an array






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






37. equivalence






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






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






40. Operators used to operate and assign






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






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






43. To get time data






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






45. Document Type Definitions






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






47. used to round numeric values.






48. Function used to round down to the lowest integer






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






50. TRUE or FALSE