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






2. Document Type Definitions






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






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






5. The concatenation operator?






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






7. To sort values of an array in reversed order






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






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






10. The syntax for connecting to a database






11. Hypertext Preprocessor - a server-side programing language used to create webpages






12. Function that contains the highest value that rand() can have randomly






13. To counter htmlentities()






14. The concatenation assignment operator?






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






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






17. Control structures that break exit






18. used to round numeric values.






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






20. collection of binary data






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






22. To determine the amount of elements in an array






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






24. TRUE or FALSE






25. Active Server Pages






26. To reset an array _______ the array() function to the array






27. bitwise AND






28. Standard Generalized Markup Language






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






30. To find how many substrings are in a string






31. function Function used to create a random number






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


33. To append elements to an array - this will assign item to the next available index; associative arrays get messy.






34. The order of operations.






35. $_SERVER is a ________ variable.






36. a positive or negative number






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






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






39. EXtensible Markup Language






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






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






42. equivalence






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






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






45. Use ________ to have multiple quotations in one string






46. identity






47. container of both data and code






48. Search Engine Optimization






49. Tag to end a php script






50. Hyper Text Transfer Protocol







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