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. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.






2. _____ is a logical operator






3. Control structures that break exit






4. Tag to begin a php script






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






6. To find how many substrings are in a string






7. To declare a constant






8. $_SERVER is a ________ variable.






9. bitwise XOR






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






11. bitwise right shift






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






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






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






15. To close a connection between a database






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






17. Active Server Pages






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






19. standard notation






20. signed floating-point value






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






22. container of ordered data elements






23. Document Type Definitions






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






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






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






27. function Function used to create a random number






28. To merge arrays






29. An array of variables passed in the URL






30. To iterate over the values of an array






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






32. To counter htmlentities()






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






34. Variable names cannot begin with _______






35. a language in which to make querys to a database with






36. _______ is a comparison operator






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






38. signed integer






39. The syntax for connecting to a database






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






41. To refer to an item in an array






42. The prefix for a dynamic variable - also known as a variable variable






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






44. Asynchronous Javascript And XML






45. Uses two arguments: constant name and constant definition






46. Standard Generalized Markup Language






47. To determine the amount of elements in an array






48. To remove all HTML and PHP tags.






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






50. All variables must begin with _________.







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