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. signed integer






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






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






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






5. This fatal error arises from memory allocation problem.






6. Use ______ when there are no variables in the string






7. Variable names can begin with __________






8. Hyper Text Markup Language






9. used to round numeric values.






10. An array of variables passed in the URL






11. equivalence






12. To declare a constant






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






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






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






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






17. The four main error types are:Notice - Warning - ________ and Error.






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






19. _____ is a logical operator






20. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.






21. To get over quotation marks while using arrays






22. _______ is a comparison operator






23. container of both data and code






24. The order of operations.






25. Tag to end a php script






26. The concatenation operator?






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






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






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






30. either hasn't yet been set or is assigned NULL value






31. function Function used to create a random number






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






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






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






35. To assign array element values to individual variables






36. Hypertext Preprocessor - a server-side programing language used to create webpages






37. identity






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






39. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.






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






41. collection of binary data






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






43. Function used to round down to the lowest integer






44. An array whose keys are numbers.






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


46. All variables must begin with _________.






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






48. Alias of rtrim()






49. To sort values of an array in reversed order






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