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. passes value into block of code and assigns it the label of "x"






2. (regular expression)any digit






3. the remainder operator






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






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






6. (regular expression)any non-whitespace character






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






8. a collection of objects or values with associated keys






9. operator for "Boolean not"






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






11. array method that removes last item from an array






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






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






14. Boolean not and or (lower preference)






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






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






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






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






19. array method that selects particular items from an array






20. used in an expression to manipulate objects






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






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






23. a whole number






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






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






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






27. Boolean OR operator






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






29. mixing expressions into strings






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






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






32. class inheritance operator.






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






34. a string method that makes string all caps.






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






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






37. conditionally stops a loop






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






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






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






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






42. an array method that






43. a set of code within a class or object






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






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






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






47. comparison operator for "not equal to"






48. a single instance of a class.






49. a string method that uncapitalizes first character






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






Can you answer 50 questions in 15 minutes?



Let me suggest you:



Major Subjects



Tests & Exams


AP
CLEP
DSST
GRE
SAT
GMAT

Most popular tests