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. print $_SERVER will _____ work if you use the print function on arrays.






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






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






4. The name of the #! used to designate the location of the PHP binary






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






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






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






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






9. Asynchronous Javascript And XML






10. _______ is a comparison operator






11. Variable names cannot begin with _______






12. addition






13. Use ________ to have multiple quotations in one string






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






15. What You See Is What You Get






16. equivalence






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






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






19. $_SERVER is a ________ variable.






20. To get time data






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






22. identity






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






24. To merge arrays






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






26. This will show all error reporting.






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






28. bitwise XOR






29. Hyper Text Transfer Protocol






30. To reorganise the array randomly






31. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.






32. Used to check if a variable has a valid numerical value; strings with numerical values pass.






33. signed floating-point value






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






35. Returns a character from a specified ASCII value






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






37. used to round numeric values.






38. To assign array element values to individual variables






39. container of both data and code






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






41. Variable names can begin with __________






42. Leading 0x: 0x13F or 0xA23






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






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






45. To check if a constant is already declared






46. leading zero: 0100 or 0567






47. To set up error reporting






48. This error arises from misusing a function.






49. An array of variables passed in the URL






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