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. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.






2. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.






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






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






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






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






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






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






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






10. (regular expression)any digit






11. interpolation operator






12. Boolean OR operator






13. returns ASCII value of x






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






15. sets a text delimiter






16. string method that determines if a string starts with a defined string






17. method that sorts items alphabetically






18. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.






19. array method that selects particular items from an array






20. comparison operator for "equal to"






21. a string method that removes last character






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






23. a string method that substituition. Requires 2 arguments.






24. comparison operator for "not equal to"






25. (regular expression)any non-whitespace character






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






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






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






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






30. a single instance of a class.






31. the process of deciding which sections of code to execute based on conditions






32. a collection of objects with a defined order






33. a collection of objects or values with associated keys






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






35. array method that removes last item from an array






36. class inheritance operator.






37. a definition of a concept in an object oriented language.






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






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






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






41. the remainder operator






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






43. mixing expressions into strings






44. returns ASCII value of x






45. Boolean AND operator






46. operator for "Boolean not"






47. a string method (with /REGEX/ and starting_point separated by comma) that outputs the first string matching the defined regular expression from an optionally defined starting point






48. a number with a decimal point such as 1.0 or 3.1






49. comparison operator for "not equal to"






50. a set of code within a class or object