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 set of code within a class or object






2. a string method that capitalizes first character






3. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.






4. array method that selects particular items from an array






5. variable that can be used only where it is defined within an application






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






7. a fixed value that begins with a capital letter such as Pi.






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






9. (regular expression)any nondigit






10. less than or equal to (comparison operator)






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






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






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






14. comparison operator for "equal to"






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






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






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






18. a single instance of a class.






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






20. returns ASCII value of x






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






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






23. a collection of objects or values with associated keys






24. method that sorts items alphabetically






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






26. a string method that uncapitalizes first character






27. interpolation operator






28. an array method that






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






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






31. a special class that holds attributes and data but no methods.






32. Boolean AND operator






33. class inheritance operator.






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






35. a collection of objects with a defined order






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






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






38. an array method that






39. interpolation operator






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






41. operator for "Boolean not"






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






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






44. defines array of multiple elements seperated by a space






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






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






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






48. a string method that removes last character






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






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