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


2. To refer to an item in an array






3. Function used to round down to the lowest integer






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






5. _____ is a logical operator






6. The syntax for connecting to a database






7. To check if a constant is already declared






8. _______ is a comparison operator






9. $_SERVER is a ________ variable.






10. Leading 0x: 0x13F or 0xA23






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






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






13. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.






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






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






16. Define(NAME,value)






17. used to round numeric values.






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






19. Converts a string of ASCII characters to hexadecimal values






20. To reorganise the array randomly






21. This fatal error arises from memory allocation problem.






22. EXtensible Markup Language






23. bitwise XOR






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






25. Alias of rtrim()






26. Document Type Definitions






27. searches the subject for matches to a given pattern replaced with the given replacement text






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






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






30. container of both data and code






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






32. To set up error reporting






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






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






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






36. leading zero: 0100 or 0567






37. To remove all HTML and PHP tags.






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






39. Use ______ for search engines or catalogued pages or pages that would be bookmarked.






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






41. An array of variables passed in the URL






42. signed integer






43. To declare a constant






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






45. This will show all error reporting.






46. signed floating-point value






47. To determine the amount of elements in an array






48. Hyper Text Markup Language






49. function Function used to create a random number






50. Uses two arguments: constant name and constant definition