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. Creates a pointer to a file with the declared mode (read - write -etc.).






2. does a certain action when called upon






3. Function used to round up to the highest integer






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






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






6. The concatenation operator?






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






8. Tag to begin a php script






9. Returns a string with backslashes in front of the specified characters






10. To check if a constant is already declared






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






12. addition






13. bitwise left shift






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






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






16. When used the value can be passed safely through the URL (GET).






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






18. To assign keys to the values in an array






19. Asynchronous Javascript And XML






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






21. Active Server Pages






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






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


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






25. bitwise AND






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






27. What You See Is What You Get






28. A conditional or loop is a ________________.






29. container of ordered data elements






30. To determine the amount of elements in an array






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






32. The order of operations.






33. PHP has two conditional: if and ______.






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






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






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






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






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






39. To reorganise the array randomly






40. An array whose keys are numbers.






41. The prefix for a dynamic variable - also known as a variable variable






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






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






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






45. To get time data






46. container of both data and code






47. To iterate over the values of an array






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






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






50. This will show all error reporting except for notice errors.