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. says 'if' this then do this 'else' do this or 'while' this do this






2. does a certain action when called upon






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






4. Use ________ to have multiple quotations in one string






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






6. This will not show error reporting - it will be turned off.






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






8. used to round numeric values.






9. EXtensible Markup Language






10. To sort by the keys while maintaining the correlation between the key and its value






11. To counter htmlentities()






12. Uses two arguments: constant name and constant definition






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






14. The ouput of var_export((bool)"NULL");






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






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






17. _______ is a comparison operator






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






19. Used to find the length of a string






20. _____ is a logical operator






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






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






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






24. To delete a variable or an element of an array






25. An array whose keys are numbers.






26. bitwise AND






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


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






29. TRUE or FALSE






30. To word wrap after a certain amount of characters.






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






32. All variables must begin with _________.






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






34. bitwise XOR






35. bitwise right shift






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






37. $_SERVER is a ________ variable.






38. To merge arrays






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






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






41. Control structures that break exit






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






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






44. a positive or negative number






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






46. container of ordered data elements






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






48. equivalence






49. Hyper Text Markup Language






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