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. array method that selects particular items from an array
.select
inheritance
yield
.sub
2. allows for classes to relate to each other in a hierarchy
inheritance
.upcase
.sub
.swapcase
3. a set of code within a class or object
iterator
$
<<
method
4. (regular expression)anchor for the end of a string
kernel
D
.chop
Z
5. (regular expression)any space or tab or newline or whitespace
s
<<
@
.downcase
6. array method that removes last item from an array
constant
inheritance
.pop
=>
7. defines an instance variable which only exists within the object it was created in.
==
struct
class
@
8. passes value into block of code and assigns it the label of "x"
|x|
.even?
start_with?
regular expressions
9. mixing expressions into strings
.include?()
interpolation
.downcase
d
10. a string method that uncapitalizes first character
Z
.downcase
.scan()
.between?
11. returns ASCII value of x
.each
method
local variable
?x
12. a module of classes and or functions
class
^
object orientation
library
13. assigns a key to a hash value
d
=>
flow control
.pop
14. a string method that removes last character
if?then:else
arguments
.sub
.chop
15. Boolean not and or (lower preference)
Z
not and or
kernel
.even?
16. a string method that substitutes ALL occurrences of a string with another.
<=
&&
operators
.gsub
17. an array method that returns TRUE or FALSE if the array contains specified item
s
?x
not and or
.include?()
18. an array method that
%q
.each
.swapcase
end_with?
19. string method that "cleans" extra spaces from strings
object
regular expressions
strip
constant
20. (regular expression)any digit
!
d
$
arguments
21. passes value into block of code and assigns it the label of "x"
!
.chop
.methods
|x|
22. pushes a new item onto the end of an array.
.map
integer
<<
variable
23. a string method that capitalizes first character
.capitalize
.each
S
w
24. Boolean AND operator
&&
.split
strip
A
25. an array method that returns TRUE or FALSE if the array contains specified item
.include?()
A
<
^
26. a special class that holds attributes and data but no methods.
strip
.scan()
struct
A
27. (regular expression)anchor for the start of a string
A
interpolation
.sub
code blocks
28. (regular expression)anchor for the start of a string
<=>
A
parameters
constant
29. (regular expression)any non-whitespace character
constant
.capitalize
.between?
S
30. a string method that substitutes ALL occurrences of a string with another.
%arg
S
.gsub
w
31. a string method that makes string all caps.
.upcase
.capitalize
.between?
$
32. variable that can be used only where it is defined within an application
.between?
local variable
<<
!=
33. comparison operator for "not equal to"
!
!
!=
inheritance
34. conditionally stops a loop
.index
float
local variable
break if
35. a string method that scans object for arguments - uses regular expressions.
!=
s
call
.scan()
36. (regular expression)any nonletter or nondigit or nonunderscore.
end_with?
S
W
.next
37. sets a single character text delimiter for multi-line strings
%q
d
.downcase
struct
38. a string method that removes last character
.chop
array
end_with?
w
39. data passed to methods in parenthesis after a method's name.
.chop
==
string
parameters
40. (regular expression)any nondigit
object
&&
struct
D
41. array method that transforms the contents of an array according to a specified set of rules
inheritance
<=>
.map
w
42. defines array of multiple elements seperated by a space
not and or
<=>
.downcase
%w{}
43. method that sorts items alphabetically
.include?()
s
ARGV
.sort
44. string method that determines if a string ends with a defined string
end_with?
interpolation
.capitalize
.swapcase
45. method to determine if an object is an even number
<
.even?
integer
@
46. (regular expression)any nonletter or nondigit or nonunderscore.
call
string
W
|x|
47. operator for "Boolean not"
operators
Z
=>
!
48. runs a proc that has been stored to a variable
<<
W
.next
call
49. comparison operator for "not equal to"
.capitalize
==
|x|
!=
50. (regular expression)any non-whitespace character
strip
.methods
S
A