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 in conditional statements to set precedence






2. To assign array element values to individual variables






3. standard notation






4. Uses two arguments: constant name and constant definition






5. Used to find the length of a string






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






7. Function used to find the absolute value of a number or numeric variable






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






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






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


11. identity






12. What You See Is What You Get






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






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






15. Operators used to operate and assign






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






17. a positive or negative number






18. used to round numeric values.






19. $_POST Data sent using POST found is sent to _______






20. The syntax for connecting to a database






21. _______ is a comparison operator






22. $_POST and $_GET are ________ variables.






23. Standard Generalized Markup Language






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






25. To get time data






26. a database which is best supported by PHP






27. To iterate over the values of an array






28. An array whose keys are numbers.






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






30. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.






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






32. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED






33. The concatenation operator?






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






35. Hyper Text Transfer Protocol






36. This will not show error reporting - it will be turned off.






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






38. When used the value can be passed safely through the URL (GET).






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






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






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






42. container of ordered data elements






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






44. To sort the values while maintaining the correlation between each value and its key






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






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






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






48. This fatal error arises from memory allocation problem.






49. All variables must begin with _________.






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