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. The ouput of var_export((bool)"NULL");






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






3. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.






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






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






6. equivalence






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






8. To refer to an item in an array






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






10. To iterate over the values of an array






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






12. This will show all error reporting.






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






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






15. Hyper Text Transfer Protocol






16. Leading 0x: 0x13F or 0xA23






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






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






19. bitwise left shift






20. To reorganise the array randomly






21. What You See Is What You Get






22. Function used to round down to the lowest integer






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






24. Shorthand used to increment and decrement






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






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






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






28. To reset an array _______ the array() function to the array






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






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






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






32. To sort values of an array in reversed order






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






34. Converts a string of ASCII characters to hexadecimal values






35. Use ________ to have multiple quotations in one string






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






37. To remove all HTML and PHP tags.






38. Alias of rtrim()






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






40. $_POST and $_GET are ________ variables.






41. _____ is a logical operator






42. addition






43. This fatal error arises from memory allocation problem.






44. Uses two arguments: constant name and constant definition






45. The prefix for a dynamic variable - also known as a variable variable






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






47. allows you to split strings based on more complex rules






48. To declare a constant






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






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