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. an array method that






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






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






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






5. a whole number






6. array method that removes last item from an array






7. a collection of objects or values with associated keys






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






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






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






11. Boolean AND operator






12. the ternary operator if?then:else






13. a string method that makes string all caps.






14. a string method that capitalizes first character






15. (regular expression)any digit






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






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






18. array assignment oprator






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






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






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






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






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






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






25. Boolean not and or (lower preference)






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






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






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






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






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






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






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






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






34. the remainder operator






35. sets a text delimiter






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






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






38. comparison operator for "equal to"






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






40. returns ASCII value of x






41. a string method that capitalizes first character






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






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






44. used in an expression to manipulate objects






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






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






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






48. array method that selects particular items from an array






49. a string method that reverses capitalization






50. a collection of objects with a defined order