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. An array whose keys are strings; also known as a hash.






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






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






4. To determine the amount of elements in an array






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






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






7. Asynchronous Javascript And XML






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






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






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






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






12. This error arises from misusing a function.






13. To merge arrays






14. identity






15. container of ordered data elements






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






17. Returns a character from a specified ASCII value






18. This will show all error reporting except for notice errors.






19. bitwise right shift






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






21. Alias of rtrim()






22. does a certain action when called upon






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






24. Search Engine Optimization






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






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






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






28. To refer to an item in an array






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






30. _____ is a logical operator






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






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






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






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






35. Variable names can begin with __________






36. To remove all HTML and PHP tags.






37. $_SERVER is a ________ variable.






38. Operators used to operate and assign






39. To create an array






40. To iterate over the values of an array






41. To check if a constant is already declared






42. Used to encrypt values - it is a one-way encryption method






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






44. addition






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






46. EXtensible Markup Language






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






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






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






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