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 encrypt values - it is a one-way encryption method






2. To counter htmlentities()






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






4. What You See Is What You Get






5. Shorthand used to increment and decrement






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






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






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






9. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.






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






11. To declare a constant






12. Returns a character from a specified ASCII value






13. Operators used to operate and assign






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






15. To assign keys to the values in an array






16. To reorganise the array randomly






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






18. An array whose keys are strings; also known as a hash.






19. identity






20. Function used to round up to the highest integer






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






22. _______ is a comparison operator






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






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






25. Use ________ to have multiple quotations in one string






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






27. Leading 0x: 0x13F or 0xA23






28. Hyper Text Transfer Protocol






29. standard notation






30. used to round numeric values.






31. The syntax for connecting to a database






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






33. Uses two arguments: constant name and constant definition






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


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






36. Active Server Pages






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






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






39. returns the number of matches found by a given search string under this format...






40. The concatenation operator?






41. Function used to round down to the lowest integer






42. Define(NAME,value)






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






44. $_POST and $_GET are ________ variables.






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






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






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






48. Used to find the length of a string






49. EXtensible Markup Language






50. To iterate over the values of 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