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. print $_SERVER will _____ work if you use the print function on arrays.






2. The concatenation assignment operator?






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






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






5. equivalence






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






7. Shorthand used to increment and decrement






8. PHP has two conditional: if and ______.






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






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. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.






12. To sort values of an array in reversed order






13. container of ordered data elements






14. Used to find the length of a string






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






16. EXtensible Markup Language






17. bitwise left shift






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






19. Use ________ to have multiple quotations in one string






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






21. To reorganise the array randomly






22. To merge arrays






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






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






25. To set up error reporting






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






27. The concatenation operator?






28. To assign keys to the values in an array






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






30. does a certain action when called upon






31. Online applications and resources which are available to the general public with very few restrictions






32. This fatal error arises from memory allocation problem.






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






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






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






36. Leading 0x: 0x13F or 0xA23






37. Returns a character from a specified ASCII value






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






39. To append elements to an array - this will assign item to the next available index; associative arrays get messy.






40. Variable names can begin with __________






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






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






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






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






45. Hyper Text Markup Language






46. Tag to end a php script






47. Hyper Text Transfer Protocol






48. To find how many substrings are in a string






49. any programing language where the user must support the language the script is written in






50. bitwise right shift







Sorry!:) No result found.

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