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. What You See Is What You Get






2. Control structures that break exit






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






4. identity






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






6. TRUE or FALSE






7. A conditional or loop is a ________________.






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






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






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






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






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






13. Shorthand used to increment and decrement






14. a positive or negative number






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






16. Leading 0x: 0x13F or 0xA23






17. The concatenation operator?






18. $_POST Data sent using POST found is sent to _______






19. leading zero: 0100 or 0567






20. To remove all HTML and PHP tags.






21. container of ordered data elements






22. Active Server Pages






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






24. bitwise XOR






25. Use ________ to have multiple quotations in one string






26. Function used to round down to the lowest integer






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






28. standard notation






29. Operators used to operate and assign






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






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






32. To refer to an item in an array






33. This will show all error reporting.






34. Use ______ when there are no variables in the string






35. EXtensible Markup Language






36. To reorganise the array randomly






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






38. Hyper Text Markup Language






39. a type with two possible values: true and false






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






41. _______ is a comparison operator






42. Used to find the amount of words in a string.






43. To get time data






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






45. Variable names can begin with __________






46. To assign array element values to individual variables






47. To set up error reporting






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






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






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