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. bitwise right shift






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






3. Used to display errors in a particular script - should be placed at top of script.

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


4. Hyper Text Markup Language






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






6. used to round numeric values.






7. equivalence






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






9. To merge arrays






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






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






12. addition






13. _________ can be used in conditional statements to set precedence






14. Leading 0x: 0x13F or 0xA23






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






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






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






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






19. To counter htmlentities()






20. Alias of rtrim()






21. identity






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






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






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






25. When used the value can be passed safely through the URL (GET).






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






27. Hyper Text Transfer Protocol






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






29. To get time data






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






31. function Function used to create a random number






32. To declare a constant






33. standard notation






34. $_SERVER is a ________ variable.






35. Tag to begin a php script






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






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






38. To find how many substrings are in a string






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






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






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






42. Returns a string with backslashes in front of predefined characters






43. This error arises from misusing a function.






44. _______ is a comparison operator






45. Search Engine Optimization






46. container of ordered data elements






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






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






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






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