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. To sort values of an array in reversed order






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






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






4. $_POST and $_GET are ________ variables.






5. Asynchronous Javascript And XML






6. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.






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






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






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






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






11. To check if a constant is already declared






12. bitwise right shift






13. a positive or negative number






14. To determine the amount of elements in an array






15. To refer to an item in an array






16. container of ordered data elements






17. To close a connection between a database






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






19. used to round numeric values.






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






21. Used to find the length of a string






22. The concatenation assignment operator?






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






24. Variable names can begin with __________






25. Alias of rtrim()






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






27. To reorganise the array randomly






28. To get over quotation marks while using arrays






29. Similar to mysql_fetch_array() - but cannot be accessed by integer offset






30. Leading 0x: 0x13F or 0xA23






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


32. The concatenation operator?






33. A conditional or loop is a ________________.






34. An array whose keys are numbers.






35. To get time data






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






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






38. The output of var_export((float)array(0));






39. collection of binary data






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






41. addition






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






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






44. The order of operations.






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






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






47. Function that contains the highest value that rand() can have randomly






48. _____ is a logical operator






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






50. Tag to end a php script