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. Control structure that continue exit - they perform specific statements for a determined number of iterations.






3. container of ordered data elements






4. leading zero: 0100 or 0567






5. signed integer






6. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.






7. What You See Is What You Get






8. A conditional or loop is a ________________.






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






10. collection of binary data






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






12. An array whose keys are numbers.






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






14. _______ is a comparison operator






15. TRUE or FALSE






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






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






18. To refer to an item in an array






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






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


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






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






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






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






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






26. Used to find the length of a string






27. Function used to round up to the highest integer






28. A data structure that can hold a number of items of data of the same type eg. a list of names






29. Control structures that break exit






30. This will show all errors that fall under E_ALL or E_STRICT - the pipe | is used for 'or' so that errors that fall under either will be shown.






31. Shorthand used to increment and decrement






32. $_POST and $_GET are ________ variables.






33. The syntax for connecting to a database






34. returns the number of matches found by a given search string under this format...






35. To reorganise the array randomly






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






37. container of both data and code






38. To check if a constant is already declared






39. This fatal error arises from memory allocation problem.






40. To find how many substrings are in a string






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






42. Variable names cannot begin with _______






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






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






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






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






47. Active Server Pages






48. To declare a constant






49. either hasn't yet been set or is assigned NULL value






50. identity