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 declare a constant






2. Control structures that break exit






3. To reorganise the array randomly






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






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






6. does a certain action when called upon






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






8. To set up error reporting






9. leading zero: 0100 or 0567






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






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






12. To sort values of an array in reversed order






13. An array whose keys are numbers.






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






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






16. Standard Generalized Markup Language






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






18. Returns a string with backslashes in front of the specified characters






19. This will show all error reporting.






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






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






22. Alias of rtrim()






23. Function used to round up to the highest integer






24. To counter htmlentities()






25. Tag to end a php script






26. _____ is a logical operator






27. Returns a character from a specified ASCII value






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






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






30. addition






31. All variables must begin with _________.






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






33. The concatenation operator?






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






35. Active Server Pages






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






37. Tag to begin a php script






38. To close a connection between a database






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






40. Used to find the length of a string






41. Use ________ to have multiple quotations in one string






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






43. To get over quotation marks while using arrays






44. This error arises from misusing a function.






45. 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


46. An array of variables passed in the URL






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






48. container of ordered data elements






49. bitwise AND






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