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. Returns a string with backslashes in front of the specified characters






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






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






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






5. Hyper Text Transfer Protocol






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






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






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






9. Function can you use to format a number with commas






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






11. To refer to an item in an array






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






13. Hypertext Preprocessor - a server-side programing language used to create webpages






14. TRUE or FALSE






15. Tag to end a php script






16. Variable names cannot begin with _______






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






18. signed floating-point value






19. $_SERVER is a ________ variable.






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






21. EXtensible Markup Language






22. container of ordered data elements






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






24. To iterate over the values of an array






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






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






27. addition






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






29. To determine the amount of elements in an array






30. Used to find the length of a string






31. identity






32. _______ is a comparison operator






33. A conditional or loop is a ________________.






34. standard notation






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






36. Asynchronous Javascript And XML






37. Active Server Pages






38. To assign keys to the values in an array






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






40. To counter htmlentities()






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






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






43. signed integer






44. To include files - _______ will give errors and _________ will terminate execution().






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






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






47. Control structures that break exit






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






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






50. The array that stores variables specific to a user's visit