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 find the amount of words in a string.






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






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






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






5. This error refers to a variable with no value.






6. function Function used to create a random number






7. Hyper Text Transfer Protocol






8. Define(NAME,value)






9. _______ is a comparison operator






10. Use ________ to have multiple quotations in one string






11. standard notation






12. To set up error reporting






13. a storage location in the computer's memory that has a type & a name and a contents






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






15. To delete a variable or an element of an array






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






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






18. To determine the amount of elements in an array






19. Converts a string of ASCII characters to hexadecimal values






20. To close a connection between a database






21. The syntax for connecting to a database






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






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






24. Uses two arguments: constant name and constant definition






25. PHP has two conditional: if and ______.






26. collection of binary data






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






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






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






30. TRUE or FALSE






31. bitwise right shift






32. Function used to round up to the highest integer






33. signed floating-point value






34. To iterate over the values of an array






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






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






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






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






39. This error arises from misusing a function.






40. bitwise AND






41. Hyper Text Markup Language






42. Returns a string with backslashes in front of predefined characters






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






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






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






46. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED






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






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






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






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