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. either hasn't yet been set or is assigned NULL value






2. a positive or negative number






3. equivalence






4. To merge arrays






5. signed floating-point value






6. function Function used to create a random number






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


8. To reorganise the array randomly






9. Variable names cannot begin with _______






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






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






12. The syntax for connecting to a database






13. Uses two arguments: constant name and constant definition






14. $_SERVER is a ________ variable.






15. addition






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






17. An array whose keys are strings; also known as a hash.






18. Tag to end a php script






19. EXtensible Markup Language






20. The three types of loops in PHP are: for - while - ____.






21. The concatenation operator?






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






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






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






25. Tag to begin a php script






26. says 'if' this then do this 'else' do this or 'while' this do this






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






28. a database which is best supported by PHP






29. This error arises from misusing a function.






30. _________ can be used in conditional statements to set precedence






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






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






33. Define(NAME,value)






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






35. Used to replace a substring with another string - it is not case-sensitive.






36. To set up error reporting






37. Function used to round down to the lowest integer






38. This fatal error arises from memory allocation problem.






39. Function used to find the absolute value of a number or numeric variable






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






41. Standard Generalized Markup Language






42. To get over quotation marks while using arrays






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






44. Variable names can begin with __________






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






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






47. PHP has two conditional: if and ______.






48. used to round numeric values.






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






50. To iterate over the values of an array