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. the ternary operator if?then:else






2. defines array of multiple elements seperated by a space






3. a whole number






4. a module of classes and or functions






5. array method that selects particular items from an array






6. interpolation operator






7. interpolation operator






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






9. a string method that uncapitalizes first character






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






11. the remainder operator






12. operator for "Boolean not"






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






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






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






16. a way to describe patterns in text






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






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






19. returns ASCII value of x






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






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






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






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






24. passes value into block of code and assigns it the label of "x"






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






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






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






28. Boolean not and or (lower preference)






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






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






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






32. array assignment oprator






33. less than or equal to (comparison operator)






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






35. returns ASCII value of x






36. a string method that makes string all caps.






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






38. used in an expression to manipulate objects






39. a string method that capitalizes first character






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






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






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






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






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






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






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






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






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






49. a single instance of a class.






50. sets a text delimiter