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. To sort the values while maintaining the correlation between each value and its key - in reversed order






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






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






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






5. bitwise right shift






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






7. To reorganise the array randomly






8. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.






9. Function that contains the highest value that rand() can have randomly






10. $_SERVER is a ________ variable.






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






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






13. To assign array element values to individual variables






14. $_POST and $_GET are ________ variables.






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






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






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






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






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






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






21. equivalence






22. used to round numeric values.






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






24. Shorthand used to increment and decrement






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






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






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






28. Leading 0x: 0x13F or 0xA23






29. Variable names can begin with __________






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






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






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






33. A conditional or loop is a ________________.






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






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






36. To determine the amount of elements in an array






37. Function used to round up to the highest integer






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






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






40. To remove all HTML and PHP tags.






41. Uses two arguments: constant name and constant definition






42. collection of binary data






43. To check if a constant is already declared






44. Hyper Text Markup Language






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






46. Tag to begin a php script






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






48. An array whose keys are numbers.






49. Alias of rtrim()






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