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






2. Used to find the length of a string






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






4. $_POST and $_GET are ________ variables.






5. bitwise right shift






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






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






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






9. Asynchronous Javascript And XML






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






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






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






13. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead






14. Active Server Pages






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






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






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






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






19. To check if a constant is already declared






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






21. To get time data






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






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






24. Variable names cannot begin with _______






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






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






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






28. _________ can be used in conditional statements to set precedence






29. print $_SERVER will _____ work if you use the print function on arrays.






30. Use ________ to have multiple quotations in one string






31. The syntax for connecting to a database






32. Operators used to operate and assign






33. To remove all HTML and PHP tags.






34. does a certain action when called upon






35. Alias of rtrim()






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






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






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






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






40. used to round numeric values.






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






42. An array of variables passed in the URL






43. To assign array element values to individual variables






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






45. signed integer






46. Used to convert certain HTML tags into their entity versions.






47. To find how many substrings are in a string






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






49. To reorganise the array randomly






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