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. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__






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






3. Used to check if a variable has any value (including 0 or FALSE or an empty string).






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






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






6. To iterate over the values of an array






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






8. TRUE or FALSE






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






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






11. To merge arrays






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






13. To get over quotation marks while using arrays






14. _____ is a logical operator






15. identity






16. addition






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






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






19. Operators used to operate and assign






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






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






22. This fatal error arises from memory allocation problem.






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






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






25. signed integer






26. Function used to round down to the lowest integer






27. bitwise right shift






28. Similar to mysql_fetch_array() - but cannot be accessed by integer offset






29. To determine the amount of elements in an array






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






31. Leading 0x: 0x13F or 0xA23






32. To remove all HTML and PHP tags.






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






34. Function used to round up to the highest integer






35. To create an array






36. $_SERVER is a ________ variable.






37. Converts a string of ASCII characters to hexadecimal values






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






39. Shorthand used to increment and decrement






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






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






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






43. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;






44. standard notation






45. To assign keys to the values in an array






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






47. the most basic function in PHP used to output information to the page






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






49. Use _______ for passwords or pages that would not be bookmarked or pages that require security.






50. EXtensible Markup Language