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. $_SERVER is a ________ variable.






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






3. This fatal error arises from memory allocation problem.






4. a line of information that can be stored in a variable or used in a function or statement






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






6. any programing language where the script is parsed on the server






7. The order of operations.






8. used to round numeric values.






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


10. To find how many substrings are in a string






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






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






13. To get time data






14. Function used to round up to the highest integer






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






16. All variables must begin with _________.






17. An array whose keys are numbers.






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






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






20. Tag to begin a php script






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






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






23. To put a dollar sign before a variable like $10 where 10 is the variable's value - you can escape the first dollar sign; $$cost; or you can use __________.






24. ____ or key is referred to for a value within an array.






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






26. Function used to round down to the lowest integer






27. Active Server Pages






28. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;






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






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






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






32. collection of binary data






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






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






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






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






37. The four main error types are:Notice - Warning - ________ and Error.






38. Returns a character from a specified ASCII value






39. Alias of rtrim()






40. container of both data and code






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






42. equivalence






43. identity






44. standard notation






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






46. Operators used to operate and assign






47. To assign keys to the values in an array






48. bitwise left shift






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






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