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. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.






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






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






4. signed integer






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






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






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






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






9. The concatenation assignment operator?






10. standard notation






11. collection of binary data






12. Document Type Definitions






13. Control structures that break exit






14. a positive or negative number






15. To reorganise the array randomly






16. Tag to begin a php script






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


18. _______ is a comparison operator






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






20. leading zero: 0100 or 0567






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






22. used to round numeric values.






23. To assign array element values to individual variables






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






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






26. Asynchronous Javascript And XML






27. Tag to end a php script






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






29. a database which is best supported by PHP






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






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






32. Variable names cannot begin with _______






33. bitwise right shift






34. A conditional or loop is a ________________.






35. Shorthand used to increment and decrement






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






37. Alias of rtrim()






38. function Function used to create a random number






39. identity






40. Use ______ for search engines or catalogued pages or pages that would be bookmarked.






41. What You See Is What You Get






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






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






44. All variables must begin with _________.






45. An array of variables passed in the URL






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






47. PHP has two conditional: if and ______.






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






49. To sort the values while maintaining the correlation between each value and its key






50. Used to find the length of a string