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 iterate over the values of an array






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






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






4. TRUE or FALSE






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






6. Define(NAME,value)






7. $_POST and $_GET are ________ variables.






8. Used to replace a substring with another string - it is not case-sensitive.






9. bitwise right shift






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






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






12. Function used to round down to the lowest integer






13. Creates a pointer to a file with the declared mode (read - write -etc.).






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






15. This error arises from misusing a function.






16. Variable names cannot begin with _______






17. Tag to end a php script






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






19. bitwise AND






20. Search Engine Optimization






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






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






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






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






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






26. bitwise XOR






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






28. addition






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






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






31. To determine the amount of elements in an array






32. To close a connection between a database






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






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






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






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






37. Alias of rtrim()






38. function Function used to create a random number






39. This fatal error arises from memory allocation problem.






40. The concatenation assignment operator?






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






42. Control structures that break exit






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






44. The order of operations.






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






46. To get time data






47. Returns a character from a specified ASCII value






48. To remove all HTML and PHP tags.






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






50. bitwise left shift