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 string method that substituition. Requires 2 arguments.
<<
.sub
.chop
arguments
2. passes value into block of code and assigns it the label of "x"
.pop
|x|
.between?
.index
3. an array method that
.each
s
s
@
4. a collection of characters such as "Hello world!"
class
A
string
.sub
5. array method that selects particular items from an array
Z
.index
!=
.select
6. runs a proc that has been stored to a variable
kernel
.downcase
call
interpolation
7. defines array of multiple elements seperated by a space
.methods
%w{}
if?then:else
.pop
8. (regular expression)any non-whitespace character
operators
.swapcase
ARGV
S
9. a placeholder for a single object that may be a number or string or list or instance of a defined class
code blocks
variable
.map
$:.
10. comparison operator for "not equal to"
d
.capitalize
if?then:else
!=
11. tells you all methods that an object may invoke.
W
.split
.methods
.include?()
12. a string method that scans object for arguments - uses regular expressions.
.scan()
.next
.methods
parameters
13. (regular expression)anchor for the start of a string
start_with?
A
.each
$
14. string method that determines if a string starts with a defined string
start_with?
.map
code blocks
&&
15. sets a single character text delimiter for multi-line strings
iterator
%q
S
d
16. array method that removes last item from an array
flow control
.pop
parameters
.include?()
17. a regular method that is the anchor for the beggining of a line
.pop
.chop
.split
^
18. the ternary operator if?then:else
d
if?then:else
local variable
call
19. an array method that returns TRUE or FALSE if the array contains specified item
Z
string
s
.include?()
20. a string method that uncapitalizes first character
.downcase
strip
W
!=
21. method that tells if an argument is within the limits of two numbers
.pop
constant
.between?
break if
22. a string method that makes string all caps.
.upcase
hash
w
&&
23. comparison operator for "equal to"
ARGV
<<
==
break if
24. interpolation operator
.next
constant
object
#{}
25. a set of code within a class or object
method
d
.pop
|x|
26. assigns a key to a hash value
=>
?x
?x
@
27. a special array made from arguments that were added to the command line at start up.
constant
.index
.chop
ARGV
28. using classes and objects to make real-world concepts in programming.
object orientation
constant
!
.between?
29. comparison operator for "not equal to"
.downcase
!=
.scan()
<=>
30. array method that transforms the contents of an array according to a specified set of rules
.map
end_with?
@@
!
31. a string method that capitalizes first character
.next
.index
.capitalize
start_with?
32. a single instance of a class.
|x|
.methods
object
if?then:else
33. (regular expression)any non-whitespace character
operators
S
yield
interpolation
34. conditionally stops a loop
yield
not and or
break if
integer
35. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
.pop
.split
class
<=>
36. 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.
hash
code blocks
S
D
37. (regular expression)anchor for the end of a string
Z
.upcase
d
D
38. a string method that capitalizes first character
#{}
%q
.capitalize
d
39. a way to describe patterns in text
@
inheritance
regular expressions
=>
40. a string method that substitutes THE FIRST occurrence of a string within a string
.methods
.sub
regular expressions
not and or
41. pushes a new item onto the end of an array.
A
.match
<<
local variable
42. a regular method that is the anchor for the beggining of a line
W
$
#{}
^
43. Boolean not and or (lower preference)
.sub
not and or
<<
|x|
44. a string method that substitutes ALL occurrences of a string with another.
Z
%
flow control
.gsub
45. mixing expressions into strings
.upcase
.even?
interpolation
.next
46. defines an instance variable which only exists within the object it was created in.
<<
object orientation
@
w
47. method to determine if an object is an even number
.sort
.even?
.pop
.gsub
48. allows for classes to relate to each other in a hierarchy
.between?
.next
$
inheritance
49. a collection of objects or values with associated keys
iterator
.upcase
hash
.methods
50. a string method that removes last character
@
regular expressions
.chop
.gsub