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. collection of binary data






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






3. signed integer






4. Variable names can begin with __________






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






6. PHP has two conditional: if and ______.






7. Shorthand used to increment and decrement






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






9. Function used to round down to the lowest integer






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






11. To declare a constant






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






13. Used to find the length of a string






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






15. To refer to an item in an array






16. To set up error reporting






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






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






19. identity






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






21. To determine the amount of elements in an array






22. To iterate over the values of an array






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






24. To include files - _______ will give errors and _________ will terminate execution().






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






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






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


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






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






30. signed floating-point value






31. The output of var_export((float)array());






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






33. This error arises from misusing a function.






34. any programing language where the user must support the language the script is written in






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






36. Control structures that break exit






37. Hyper Text Transfer Protocol






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






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






40. Alias of rtrim()






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






42. Uses two arguments: constant name and constant definition






43. bitwise left shift






44. A conditional or loop is a ________________.






45. The prefix for a dynamic variable - also known as a variable variable






46. equivalence






47. Leading 0x: 0x13F or 0xA23






48. Returns a character from a specified ASCII value






49. Use ________ to have multiple quotations in one string






50. $_POST and $_GET are ________ variables.