Test your basic knowledge |

Ruby Programming Vocab

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. a string method that capitalizes first character






2. defines array of multiple elements seperated by a space






3. passes value into block of code and assigns it the label of "x"






4. tells ruby a value to pass while iterating a block of code






5. method that tells if an argument is within the limits of two numbers






6. a string method that splits a string into an array






7. a special array made from arguments that were added to the command line at start up.






8. used in an expression to manipulate objects






9. string method that determines if a string ends with a defined string






10. (regular expression)anchor for the end of a string






11. a string method that substitutes ALL occurrences of a string with another.






12. a string method that scans object for arguments - uses regular expressions.






13. sets a text delimiter






14. (regular expression)any digit






15. Boolean not and or (lower preference)






16. array method that transforms the contents of an array according to a specified set of rules






17. data passed to methods in parenthesis after a method's name.






18. an array method that returns TRUE or FALSE if the array contains specified item






19. defines a class variable. Can be used anywhere within a class






20. array method that transforms the contents of an array according to a specified set of rules






21. a string method that reverses capitalization






22. a string method that removes last character






23. operator for "Boolean not"






24. Boolean AND operator






25. array assignment oprator






26. (regular expression)any nonletter or nondigit or nonunderscore.






27. method to determine if an object is an even number






28. assigns a key to a hash value






29. method that sorts items alphabetically






30. less than or equal to (comparison operator)






31. a string method that scans object for arguments - uses regular expressions.






32. (regular expression)any nondigit






33. (regular expression)any nonletter or nondigit or nonunderscore.






34. a regular method that is the anchor for the beggining of a line






35. a string method that substitutes THE FIRST occurrence of a string within a string






36. a collection of objects with a defined order






37. defines an instance variable which only exists within the object it was created in.






38. a string method that uncapitalizes first character






39. method that tells an argument's place value within an array






40. method that tells an argument's place value within an array






41. data passed to methods in parenthesis after a method's name.






42. a regular method that is the anchor for the beggining of a line






43. conditionally stops a loop






44. pushes a new item onto the end of an array.






45. (regular expression)any letter or digit or underscore






46. array method that removes last item from an array






47. greater than or equal to (comparison operator)






48. (regular expression)any non-whitespace character






49. a set of code within a class or object






50. the representation of data from a start to end point