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. (regular expression)any nonletter or nondigit or nonunderscore.






2. operator for "Boolean not"






3. the remainder operator






4. a string method that removes last character






5. a string method that capitalizes first character






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






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






8. method that sorts items alphabetically






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






10. Boolean OR operator






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






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






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






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






15. (regular expression)any digit






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






17. string method that "cleans" extra spaces from strings






18. a collection of objects or values with associated keys






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






20. conditionally stops a loop






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






22. mixing expressions into strings






23. an array method that






24. a set of code within a class or object






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






26. (regular expression)any digit






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






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






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






30. array method that removes last item from an array






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






32. a way to describe patterns in text






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






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






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






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






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






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






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






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






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






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






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






44. comparison operator for "not equal to"






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






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






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






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






49. a module of classes and or functions






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