SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
Ruby Programming Vocab
Start Test
Study First
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 whole number
integer
?x
.methods
.match
2. Boolean not and or (lower preference)
.each
end_with?
not and or
iterator
3. a way to describe patterns in text
d
.next
regular expressions
.chop
4. a string method that changes last character to next alphabetical character
integer
parameters
.next
object orientation
5. runs a proc that has been stored to a variable
local variable
range
call
d
6. (regular expression)any digit
>=
d
local variable
kernel
7. a regular method that is the anchor for the beggining of a line
.match
^
.next
.gsub
8. (regular expression)any nonletter or nondigit or nonunderscore.
yield
$
break if
W
9. array method that removes last item from an array
local variable
.pop
string
.capitalize
10. pushes a new item onto the end of an array.
.even?
strip
<<
hash
11. a module of classes and or functions
library
array
D
w
12. a set of code within a class or object
method
?x
.index
.next
13. (regular expression)anchor for the end of a string
Z
S
w
end_with?
14. method that sorts items alphabetically
Z
.sort
.index
<=>
15. a string method that uncapitalizes first character
|x|
.downcase
!
s
16. comparison operator for "not equal to"
!=
|x|
if?then:else
end_with?
17. an array method that
s
.each
.next
.scan()
18. data passed to methods in parenthesis after a method's name.
==
.even?
end_with?
arguments
19. a collection of objects with a defined order
.sort
array
.chop
|x|
20. less than or equal to (comparison operator)
interpolation
operators
.scan()
<=
21. method to determine if an object is an even number
.map
.each
.even?
%q
22. 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
yield
.include?()
.match
.downcase
23. method that tells an argument's place value within an array
.sub
#{}
.methods
.index
24. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
flow control
.split
A
constant
25. defines an instance variable which only exists within the object it was created in.
.map
.split
.next
@
26. a string method that substituition. Requires 2 arguments.
.sub
=>
object
%q
27. Boolean OR operator
#{}
||
Z
.between?
28. method that tells if an argument is within the limits of two numbers
$
<<
object
.between?
29. a string method that uncapitalizes first character
!
.pop
if?then:else
.downcase
30. (regular expression)any nonletter or nondigit or nonunderscore.
W
>=
$:.
start_with?
31. string method that determines if a string ends with a defined string
not and or
.upcase
end_with?
interpolation
32. (regular expression)anchor for the end of a string
constant
Z
.select
<=>
33. a special array made from arguments that were added to the command line at start up.
integer
constant
ARGV
^
34. comparison operator for "not equal to"
&&
!=
.capitalize
if?then:else
35. method that tells if an argument is within the limits of two numbers
.between?
.even?
end_with?
.methods
36. (regular expression)any space or tab or newline or whitespace
W
.upcase
s
w
37. a collection of objects or values with associated keys
hash
Z
S
$:.
38. a collection of characters such as "Hello world!"
interpolation
string
.upcase
float
39. (regular expression)any space or tab or newline or whitespace
object orientation
<=
.select
s
40. a number with a decimal point such as 1.0 or 3.1
.each
method
float
class
41. a string method that capitalizes first character
.scan()
.capitalize
.upcase
iterator
42. tells you all methods that an object may invoke.
.downcase
library
iterator
.methods
43. array method that transforms the contents of an array according to a specified set of rules
d
break if
.map
.next
44. method to determine if an object is an even number
.sub
.swapcase
array
.even?
45. comparison operator for "equal to"
class
string
==
%q
46. (regular expression)any non-whitespace character
.between?
S
<=>
.between?
47. allows for classes to relate to each other in a hierarchy
variable
.upcase
object orientation
inheritance
48. tells ruby a value to pass while iterating a block of code
.even?
struct
yield
.include?()
49. a string method that substitutes ALL occurrences of a string with another.
.gsub
W
.upcase
@@
50. 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.
library
flow control
code blocks
local variable