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 sort values of an array without regard to the keys






2. All variables must begin with _________.






3. TRUE or FALSE






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






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






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






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






8. Uses two arguments: constant name and constant definition






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






10. To get over quotation marks while using arrays






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






12. Operators used to operate and assign






13. To iterate over the values of an array






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






15. Search Engine Optimization






16. Hyper Text Markup Language






17. The four main error types are:Notice - Warning - ________ and Error.






18. identity






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






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






21. To reset an array _______ the array() function to the array






22. To reorganise the array randomly






23. Variable names cannot begin with _______






24. container of ordered data elements






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






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






27. To sort the values while maintaining the correlation between each value and its key - in reversed order






28. Variable names can begin with __________






29. To check if a constant is already declared






30. standard notation






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






32. A data structure that can hold a number of items of data of the same type eg. a list of names






33. container of both data and code






34. What You See Is What You Get






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






36. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.






37. Function used to round down to the lowest integer






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






39. Returns a character from a specified ASCII value






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






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






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






43. To create an array






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






45. To counter htmlentities()






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






47. Used to convert all HTML tags into their entity versions.






48. To refer to an item in an array






49. Tag to end a php script






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






Can you answer 50 questions in 15 minutes?



Let me suggest you:



Major Subjects



Tests & Exams


AP
CLEP
DSST
GRE
SAT
GMAT

Most popular tests