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. When used the value can be passed safely through the URL (GET).






2. a line of information that can be stored in a variable or used in a function or statement






3. Use ________ to have multiple quotations in one string






4. bitwise AND






5. bitwise left shift






6. Used to convert certain HTML tags into their entity versions.






7. Uses two arguments: constant name and constant definition






8. Converts a string of ASCII characters to hexadecimal values






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






10. To reorganise the array randomly






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






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






13. ____ or key is referred to for a value within an array.






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


15. Used to find the length of a string






16. container of both data and code






17. Control structures that break exit






18. To counter htmlentities()






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






20. To find how many substrings are in a string






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






22. To check if a constant is already declared






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






24. TRUE or FALSE






25. To sort the values while maintaining the correlation between each value and its key - in reversed order






26. To delete a variable or an element of an array






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






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






29. Shorthand used to increment and decrement






30. To sort values of an array in reversed order






31. any programing language where the script is parsed on the server






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






33. Used to create a substring (referred to as a token) from a larger string






34. Search Engine Optimization






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






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






37. signed integer






38. $_POST and $_GET are ________ variables.






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






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






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






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






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






44. To sort values of an array without regard to the keys






45. Hyper Text Transfer Protocol






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






47. A conditional or loop is a ________________.






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






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






50. The output of var_export((float)array(0));