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. a variable that lists the directories where Ruby will look for libraries






2. mixing expressions into strings






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






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






5. array method that removes last item from an array






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






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






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






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






10. (regular expression)any digit






11. a string method that capitalizes first character






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






13. a string method that removes last character






14. the process of deciding which sections of code to execute based on conditions






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






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






17. interpolation operator






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






19. the ternary operator if?then:else






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






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






22. a string method that makes string all caps.






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






24. greater than or equal to (comparison operator)






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






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






27. a string method that uncapitalizes first character






28. class inheritance operator.






29. a module of classes and or functions






30. a string method that reverses capitalization






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






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






33. an array method that






34. conditionally stops a loop






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






36. a string method that removes last character






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






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






39. operator for "Boolean not"






40. less than or equal to (comparison operator)






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






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






43. assigns a key to a hash value






44. sets a text delimiter






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






46. array method that removes last item from an array






47. (regular expression)any nondigit






48. returns ASCII value of x






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






50. Boolean OR operator






Can you answer 50 questions in 15 minutes?



Let me suggest you:



Major Subjects



Tests & Exams


AP
CLEP
DSST
GRE
SAT
GMAT

Most popular tests