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 can you use to format a number with commas






2. Function used to round up to the highest integer






3. The output of var_export((float)array());






4. bitwise AND






5. The order of operations.






6. _____ is a logical operator






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






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






9. This will show all error reporting.






10. Use ______ when a variable contains any amount of variables; in general.






11. $_SERVER is a ________ variable.






12. collection of binary data






13. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.






14. Active Server Pages






15. function Function used to create a random number






16. Control structures that break exit






17. An array of variables passed with <input /> data






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






19. bitwise right shift






20. This fatal error arises from memory allocation problem.






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


22. Shorthand used to increment and decrement






23. addition






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






25. signed integer






26. a database which is best supported by PHP






27. Tag to end a php script






28. leading zero: 0100 or 0567






29. Alias of rtrim()






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






31. To reorganise the array randomly






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






33. Used to find the amount of words in a string.






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






35. This error refers to a variable with no value.






36. Tag to begin a php script






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






38. The concatenation operator?






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






40. container of ordered data elements






41. a type with two possible values: true and false






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






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






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






45. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update






46. The name of the #! used to designate the location of the PHP binary






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






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






49. $_POST Data sent using POST found is sent to _______






50. TRUE or FALSE






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