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. The name of the #! used to designate the location of the PHP binary






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






3. Returns a character from a specified ASCII value






4. The concatenation assignment operator?






5. says 'if' this then do this 'else' do this or 'while' this do this






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






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


8. identity






9. Document Type Definitions






10. To counter htmlentities()






11. To check if a constant is already declared






12. leading zero: 0100 or 0567






13. bitwise XOR






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






15. Active Server Pages






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






17. standard notation






18. Leading 0x: 0x13F or 0xA23






19. To assign array element values to individual variables






20. To reorganise the array randomly






21. Used to find the length of a string






22. To create an array






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






24. To merge arrays






25. allows you to split strings based on more complex rules






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






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






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






29. To get time data






30. To iterate over the values of an array






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






32. To assign keys to the values in an array






33. bitwise AND






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






35. Asynchronous Javascript And XML






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






37. Hyper Text Transfer Protocol






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






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






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






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






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






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






44. container of both data and code






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






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






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






48. This will show all error reporting except for notice errors.






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






50. Hyper Text Markup Language