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. defines a class variable. Can be used anywhere within a class
.scan()
.sub
A
@@
2. (regular expression)anchor for the start of a string
.index
call
A
constant
3. a string method that changes last character to next alphabetical character
$:.
.each
W
.next
4. string method that "cleans" extra spaces from strings
$
strip
>=
.downcase
5. method that tells an argument's place value within an array
.map
.swapcase
start_with?
.index
6. defines array of multiple elements seperated by a space
%w{}
.include?()
?x
break if
7. assigns a key to a hash value
.even?
class
.methods
=>
8. a regular method that is the anchor for the beggining of a line
^
W
|x|
.index
9. a way to describe patterns in text
start_with?
$
.sub
regular expressions
10. array method that removes last item from an array
.pop
.each
W
.next
11. (regular expression)anchor for the start of a string
.pop
string
.pop
A
12. the remainder operator
|x|
.capitalize
%
.downcase
13. a collection of characters such as "Hello world!"
string
s
.select
S
14. a string method that substitutes ALL occurrences of a string with another.
d
Z
.gsub
strip
15. data passed to methods in parenthesis after a method's name.
.map
range
arguments
call
16. tells ruby a value to pass while iterating a block of code
flow control
object orientation
yield
variable
17. a string method that substituition. Requires 2 arguments.
if?then:else
.sub
regular expressions
@
18. a string method that scans object for arguments - uses regular expressions.
.scan()
.map
@@
.between?
19. array method that transforms the contents of an array according to a specified set of rules
!
inheritance
.map
?x
20. Boolean AND operator
local variable
Z
&&
.each
21. (regular expression)anchor for the end of a string
constant
.methods
?x
Z
22. interpolation operator
<<
code blocks
variable
#{}
23. method that sorts items alphabetically
.sort
range
code blocks
Z
24. a single instance of a class.
object
.between?
.upcase
|x|
25. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
$
iterator
<
<=>
26. conditionally stops a loop
.upcase
A
break if
A
27. an array method that returns TRUE or FALSE if the array contains specified item
A
.include?()
?x
not and or
28. (regular expression)any nondigit
D
.gsub
@@
strip
29. (regular expression)any nondigit
!=
D
A
A
30. data passed to methods in parenthesis after a method's name.
w
parameters
.each
if?then:else
31. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
object
|x|
end_with?
kernel
32. a string method that substitutes ALL occurrences of a string with another.
.gsub
#{}
.chop
<
33. a string method that removes last character
code blocks
.chop
operators
.downcase
34. a placeholder for a single object that may be a number or string or list or instance of a defined class
variable
.sub
start_with?
D
35. using classes and objects to make real-world concepts in programming.
.between?
.next
object orientation
array
36. class inheritance operator.
object
<
.pop
>=
37. allows for classes to relate to each other in a hierarchy
if?then:else
object
inheritance
.methods
38. array method that selects particular items from an array
%
.gsub
.sub
.select
39. (regular expression)any space or tab or newline or whitespace
s
<
.downcase
%
40. a string method that capitalizes first character
.capitalize
!
.downcase
regular expressions
41. an array method that
D
.each
Z
w
42. a string method that uncapitalizes first character
.index
.chop
<
.downcase
43. 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
struct
?x
.upcase
44. a variable that lists the directories where Ruby will look for libraries
<=
string
.each
$:.
45. a regular method that is the anchor for the beggining of a line
^
A
?x
inheritance
46. a string method that scans object for arguments - uses regular expressions.
iterator
.swapcase
?x
.scan()
47. method that tells if an argument is within the limits of two numbers
.between?
.capitalize
.select
.pop
48. tells you all methods that an object may invoke.
.sub
operators
.methods
if?then:else
49. method to determine if an object is an even number
iterator
.methods
.chop
.even?
50. a string method that capitalizes first character
.capitalize
.even?
|x|
regular expressions