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. Used to find the amount of words in a string.






2. To refer to an item in an array






3. Uses two arguments: constant name and constant definition






4. To sort values of an array without regard to the keys






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






6. This will show all errors that fall under E_ALL or E_STRICT - the pipe | is used for 'or' so that errors that fall under either will be shown.






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






8. To close a connection between a database






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






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






11. Variable names can begin with __________






12. Use ______ when there are no variables in the string






13. used to round numeric values.






14. Used to replace a substring with another string - it is not case-sensitive.






15. Use ________ to have multiple quotations in one string






16. Leading 0x: 0x13F or 0xA23






17. identity






18. To reorganise the array randomly






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






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






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






22. Hyper Text Transfer Protocol






23. Active Server Pages






24. _____ is a logical operator






25. Define(NAME,value)






26. Tag to end a php script






27. This will show all error reporting.






28. This fatal error arises from memory allocation problem.






29. bitwise right shift






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






31. To find how many substrings are in a string






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






33. To declare a constant






34. To iterate over the values of an array






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


36. To get time data






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






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






39. does a certain action when called upon






40. PHP has two conditional: if and ______.






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






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






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






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






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






46. Control structures that break exit






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






48. Document Type Definitions






49. a positive or negative number






50. To create an array







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