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. ___________ can be used with substr() to count backward






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






4. To sort by the keys while maintaining the correlation between the key and its value






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






6. To counter htmlentities()






7. An array of variables passed with <input /> data






8. Control structures that break exit






9. An array whose keys are strings; also known as a hash.






10. To check if a constant is already declared






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






12. signed integer






13. To sort values of an array without regard to the keys






14. To iterate over the values of an array






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






16. To reorganise the array randomly






17. Used to find the length of a string






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






19. To merge arrays






20. used to round numeric values.






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






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






23. This will show all error reporting.






24. function Function used to create a random number






25. Variable names can begin with __________






26. To get time data






27. bitwise XOR






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






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






30. Asynchronous Javascript And XML






31. Function used to round up to the highest integer






32. This error arises from misusing a function.






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






34. $_SERVER is a ________ variable.






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






36. signed floating-point value






37. PHP has two conditional: if and ______.






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






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






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






41. container of ordered data elements






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






43. To include files - _______ will give errors and _________ will terminate execution().






44. This fatal error arises from memory allocation problem.






45. Tag to end a php script






46. To iterate over the keys and values of an array






47. container of both data and code






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






49. To assign array element values to individual variables






50. This will show all errors that fall under E_ALL or E_STRICT - the pipe | is used for 'or' so that errors that fall under either will be shown.