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 substitutes THE FIRST occurrence of a string within a string






2. runs a proc that has been stored to a variable






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






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






5. a collection of objects with a defined order






6. an array method that






7. a string method that changes last character to next alphabetical character






8. the remainder operator






9. (regular expression)any non-whitespace character






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






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






12. a regular method that is the anchor for the end of a line






13. array method that selects particular items from an array






14. using classes and objects to make real-world concepts in programming.






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






16. (regular expression)any space or tab or newline or whitespace






17. (regular expression)anchor for the start of a string






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






19. operator for "Boolean not"






20. defines array of multiple elements seperated by a space






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






22. a collection of characters such as "Hello world!"






23. array method that removes last item from an array






24. a string method that removes last character






25. sets a single character text delimiter for multi-line strings






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






27. greater than or equal to (comparison operator)






28. a section of code with no discrete name which is not a method by itself that can be called upon and can receive an argument.






29. the ternary operator if?then:else






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






31. Boolean OR operator






32. returns ASCII value of x






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






34. symbol for a global variable which can be called from anywhere in an application.






35. a collection of objects or values with associated keys






36. a string method that makes string all caps.






37. allows for classes to relate to each other in a hierarchy






38. a string method that reverses capitalization






39. a set of code within a class or object






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






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






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






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






44. (regular expression)any digit






45. assigns a key to a hash value






46. array assignment oprator






47. (regular expression)anchor for the start of a string






48. a variable that lists the directories where Ruby will look for libraries






49. class inheritance operator.






50. conditionally stops a loop