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 non-whitespace character






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






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






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






5. operator for "Boolean not"






6. a whole number






7. a collection of objects with a defined order






8. used in an expression to manipulate objects






9. comparison operator for "not equal to"






10. an array method that






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






12. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.






13. a string method that uncapitalizes first character






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






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






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






17. array method that removes last item from an array






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






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






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






21. defines array of multiple elements seperated by a space






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






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






24. a string method that makes string all caps.






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






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






27. Boolean OR operator






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






29. returns ASCII value of x






30. the ternary operator if?then:else






31. (regular expression)any digit






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






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






34. returns ASCII value of x






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






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






37. conditionally stops a loop






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






39. a string method that uncapitalizes first character






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






41. a module of classes and or functions






42. method that sorts items alphabetically






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






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






45. comparison operator for "not equal to"






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






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






48. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.






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






50. (regular expression)any digit







Sorry!:) No result found.

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