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. A conditional or loop is a ________________.






2. Variable names cannot begin with _______






3. This will show all error reporting.






4. To reorganise the array randomly






5. bitwise AND






6. The order of operations.






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






8. To find how many substrings are in a string






9. used to round numeric values.






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






11. Uses two arguments: constant name and constant definition






12. To iterate over the values of an array






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






14. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.






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






16. addition






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






18. An array of variables passed in the URL






19. $_SERVER is a ________ variable.






20. signed integer






21. This error arises from misusing a function.






22. Used to replace a substring with another string - it is not case-sensitive.






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


24. Use ________ to have multiple quotations in one string






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






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






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






28. Returns a character from a specified ASCII value






29. To merge arrays






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






31. Function used to round down to the lowest integer






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






33. Operators used to operate and assign






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






35. To get over quotation marks while using arrays






36. signed floating-point value






37. To sort values of an array in reversed order






38. To assign keys to the values in an array






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






40. To remove all HTML and PHP tags.






41. What You See Is What You Get






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






43. This fatal error arises from memory allocation problem.






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






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






46. function Function used to create a random number






47. Hyper Text Markup Language






48. Search Engine Optimization






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






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.