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. array method that transforms the contents of an array according to a specified set of rules






2. defines array of multiple elements seperated by a space






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






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






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






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






7. an array method that






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






9. array assignment oprator






10. a set of code within a class or object






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






12. less than or equal to (comparison operator)






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






14. (regular expression)any non-whitespace character






15. class inheritance operator.






16. (regular expression)any digit






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






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






19. used in an expression to manipulate objects






20. comparison operator for "not equal to"






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






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






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






24. greater than or equal to (comparison operator)






25. interpolation operator






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






27. a collection of objects or values with associated keys






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






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






30. method that sorts items alphabetically






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






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






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






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






35. a whole number






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






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






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






39. returns ASCII value of x






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






41. a way to describe patterns in text






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






43. Boolean not and or (lower preference)






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






45. a string method that uncapitalizes first character






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






47. a string method that uncapitalizes first character






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






49. an array method that






50. conditionally stops a loop