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. Boolean AND operator






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






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






4. class inheritance operator.






5. the remainder operator






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






7. an array method that






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






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






10. interpolation operator






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






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






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






14. a whole number






15. comparison operator for "equal to"






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






17. Boolean not and or (lower preference)






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






19. (regular expression)any nondigit






20. comparison operator for "not equal to"






21. (regular expression)any digit






22. a string method that capitalizes first character






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






24. the ternary operator if?then:else






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






26. a collection of objects with a defined order






27. mixing expressions into strings






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






29. conditionally stops a loop






30. a string method that uncapitalizes first character






31. (regular expression)any non-whitespace character






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






33. a set of code within a class or object






34. returns ASCII value of x






35. used in an expression to manipulate objects






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






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






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






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






40. a string method that reverses capitalization






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






42. string method that determines if a string ends with a defined string






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






44. (regular expression)any non-whitespace character






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






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






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






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






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






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