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. class inheritance operator.






2. a variable that lists the directories where Ruby will look for libraries






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






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






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






6. array assignment oprator






7. comparison operator for "equal to"






8. sets a text delimiter






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






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






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






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






13. interpolation operator






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






15. string method that determines if a string starts with a defined string






16. assigns a key to a hash value






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






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






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






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






21. a string method that removes last character






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






23. greater than or equal to (comparison operator)






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






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






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






27. Boolean OR operator






28. method that sorts items alphabetically






29. a way to describe patterns in text






30. an array method that






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






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






33. defines array of multiple elements seperated by a space






34. a string method that uncapitalizes first character






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






36. a collection of objects or values with associated keys






37. (regular expression)any digit






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






39. (regular expression)any nondigit






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






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






42. the ternary operator if?then:else






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






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






45. (regular expression)any non-whitespace character






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






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






48. a collection of objects with a defined order






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






50. conditionally stops a loop