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 merge arrays






2. To remove all HTML and PHP tags.






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






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






5. Operators used to operate and assign






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






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






8. Hypertext Preprocessor - a server-side programing language used to create webpages






9. This fatal error arises from memory allocation problem.






10. Used to find the length of a string






11. Function used to round down to the lowest integer






12. To find how many substrings are in a string






13. The three types of loops in PHP are: for - while - ____.






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






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






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






17. Returns a string with backslashes in front of predefined characters






18. Uses two arguments: constant name and constant definition






19. bitwise XOR






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






21. $_SERVER is a ________ variable.






22. a database which is best supported by PHP






23. standard notation






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






25. Document Type Definitions






26. To counter htmlentities()






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






28. To close a connection between a database






29. TRUE or FALSE






30. The syntax for connecting to a database






31. Define(NAME,value)






32. Shorthand used to increment and decrement






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






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






35. Use ________ to have multiple quotations in one string






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






37. To iterate over the values of an array






38. Asynchronous Javascript And XML






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






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






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






42. Tag to end a php script






43. To determine the amount of elements in an array






44. signed floating-point value






45. To sort values of an array in reversed order






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






47. This will show all error reporting.






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






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






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