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. conditionally stops a loop
regular expressions
.methods
break if
!=
2. greater than or equal to (comparison operator)
strip
operators
>=
call
3. a regular method that is the anchor for the end of a line
.capitalize
not and or
.select
$
4. method that sorts items alphabetically
.sort
.index
w
^
5. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
.match
?x
.pop
<=>
6. defines an instance variable which only exists within the object it was created in.
%q
@
.upcase
inheritance
7. a string method that uncapitalizes first character
.chop
S
A
.downcase
8. method to determine if an object is an even number
.split
Z
.sort
.even?
9. the process of deciding which sections of code to execute based on conditions
flow control
#{}
.include?()
==
10. (regular expression)any non-whitespace character
.gsub
S
.between?
.even?
11. allows for classes to relate to each other in a hierarchy
array
?x
not and or
inheritance
12. (regular expression)any digit
==
A
#{}
d
13. passes value into block of code and assigns it the label of "x"
|x|
end_with?
W
.pop
14. assigns a key to a hash value
<
=>
end_with?
D
15. class inheritance operator.
<
Z
method
.gsub
16. (regular expression)any nondigit
operators
D
!=
<<
17. comparison operator for "not equal to"
if?then:else
range
Z
!=
18. array method that removes last item from an array
yield
S
end_with?
.pop
19. a regular method that is the anchor for the beggining of a line
S
^
?x
.pop
20. (regular expression)any space or tab or newline or whitespace
=>
s
w
.match
21. a module of classes and or functions
library
.sub
.map
.index
22. 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.
code blocks
W
.capitalize
$
23. an array method that
.match
struct
.each
range
24. tells ruby a value to pass while iterating a block of code
yield
<<
arguments
!=
25. a number with a decimal point such as 1.0 or 3.1
$:.
method
float
.gsub
26. a way to describe patterns in text
regular expressions
&&
.match
.chop
27. pushes a new item onto the end of an array.
.between?
.next
<<
constant
28. (regular expression)any letter or digit or underscore
hash
%w{}
#{}
w
29. (regular expression)any nonletter or nondigit or nonunderscore.
W
%
.between?
.index
30. a regular method that is the anchor for the beggining of a line
!
^
&&
.capitalize
31. a string method that scans object for arguments - uses regular expressions.
regular expressions
||
strip
.scan()
32. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
kernel
.index
.sub
variable
33. sets a text delimiter
hash
.between?
.select
%arg
34. a string method that changes last character to next alphabetical character
%
.next
A
d
35. an array method that returns TRUE or FALSE if the array contains specified item
.capitalize
#{}
.include?()
<=>
36. comparison operator for "equal to"
$:.
inheritance
#{}
==
37. an array method that
d
<
.upcase
.each
38. runs a proc that has been stored to a variable
S
constant
.capitalize
call
39. the representation of data from a start to end point
.sub
^
range
=>
40. a string method that substitutes ALL occurrences of a string with another.
object orientation
||
.pop
.gsub
41. a definition of a concept in an object oriented language.
class
.index
|x|
.pop
42. a string method that substitutes ALL occurrences of a string with another.
w
class
.gsub
.include?()
43. a string method that removes last character
||
interpolation
.chop
.swapcase
44. interpolation operator
#{}
.scan()
library
.even?
45. operator for "Boolean not"
.swapcase
!
W
A
46. a collection of objects with a defined order
!=
array
parameters
.scan()
47. a string method that removes last character
interpolation
.include?()
variable
.chop
48. array method that transforms the contents of an array according to a specified set of rules
.map
^
parameters
float
49. string method that determines if a string ends with a defined string
.chop
end_with?
.downcase
.capitalize
50. a placeholder for a single object that may be a number or string or list or instance of a defined class
Z
.pop
variable
!=