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. variable that can be used only where it is defined within an application






2. a string method that reverses capitalization






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






4. a string method that removes last character






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






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






7. a string method that uncapitalizes first character






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






9. a whole number






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






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






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






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






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






15. (regular expression)any nondigit






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






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






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






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






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






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






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






23. (regular expression)any digit






24. an array method that






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






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






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






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






29. returns ASCII value of x






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






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






32. Boolean OR operator






33. a single instance of a class.






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






35. (regular expression)any nondigit






36. used in an expression to manipulate objects






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






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






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






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






41. Boolean not and or (lower preference)






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






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






44. array method that removes last item from an array






45. a collection of objects with a defined order






46. greater than or equal to (comparison operator)






47. returns ASCII value of x






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






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






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