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 determine the amount of elements in an array






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






3. To refer to an item in an array






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






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






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






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






8. addition






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






10. Variable names can begin with __________






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






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






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






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






15. Tag to end a php script






16. Function can you use to format a number with commas






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






18. The syntax for connecting to a database






19. To declare a constant






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






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






22. A conditional or loop is a ________________.






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






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






25. Use ______ when a variable contains any amount of variables; in general.






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






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






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






29. _____ is a logical operator






30. Active Server Pages






31. To reorganise the array randomly






32. To get time data






33. _______ is a comparison operator






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


35. An array of variables passed in the URL






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






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






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






39. $_POST and $_GET are ________ variables.






40. bitwise right shift






41. This fatal error arises from memory allocation problem.






42. Converts a string of ASCII characters to hexadecimal values






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






44. 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 __________.






45. To assign keys to the values in an array






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






47. Variable names cannot begin with _______






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






49. leading zero: 0100 or 0567






50. Used to find the length of a string