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. does a certain action when called upon






2. Uses two arguments: constant name and constant definition






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






4. To assign array element values to individual variables






5. returns the number of matches found by a given search string under this format...






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






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






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






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






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






11. Operators used to operate and assign






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






13. Tag to begin a php script






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






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






16. To close a connection between a database






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






18. To reorganise the array randomly






19. identity






20. leading zero: 0100 or 0567






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






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






23. The concatenation operator?






24. equivalence






25. Leading 0x: 0x13F or 0xA23






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


27. Asynchronous Javascript And XML






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






29. An array of variables passed in the URL






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






31. This error arises from misusing a function.






32. The order of operations.






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






34. To merge arrays






35. a language in which to make querys to a database with






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






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






38. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__






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






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






41. The ouput of var_export((bool)"NULL");






42. Used to check if a variable has any value (including 0 or FALSE or an empty string).






43. Tag to end a php script






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






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






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






47. Shorthand used to increment and decrement






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






49. To remove all HTML and PHP tags.






50. To assign keys to the values in an array