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. used in an expression to manipulate objects






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






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






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






5. a module of classes and or functions






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






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






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






9. returns ASCII value of x






10. array method that selects particular items from an array






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






12. string method that "cleans" extra spaces from strings






13. tells you all methods that an object may invoke.






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






15. (regular expression)any non-whitespace character






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






17. operator for "Boolean not"






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






19. array assignment oprator






20. (regular expression)any digit






21. sets a text delimiter






22. the ternary operator if?then:else






23. (regular expression)any nondigit






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






25. a string method that uncapitalizes first character






26. a single instance of a class.






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






28. a string method that reverses capitalization






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






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






31. methods that step through lists element by element (like each or upto or times etc)






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






33. a collection of objects with a defined order






34. interpolation operator






35. Boolean not and or (lower preference)






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






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






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






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






40. greater than or equal to (comparison operator)






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






42. a placeholder for a single object that may be a number or string or list or instance of a defined class






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






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






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






46. a way to describe patterns in text






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






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






49. a set of code within a class or object






50. an array method that