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
object
.select
constant
.next
2. a string method that substitutes THE FIRST occurrence of a string within a string
.scan()
.sub
variable
float
3. the ternary operator if?then:else
if?then:else
variable
object
S
4. runs a proc that has been stored to a variable
call
.pop
method
constant
5. (regular expression)anchor for the end of a string
.index
^
.chop
Z
6. data passed to methods in parenthesis after a method's name.
regular expressions
%arg
parameters
S
7. a set of code within a class or object
@
ARGV
method
!=
8. a way to describe patterns in text
$:.
!=
not and or
regular expressions
9. pushes a new item onto the end of an array.
<<
object orientation
A
string
10. a definition of a concept in an object oriented language.
class
.map
?x
A
11. (regular expression)any nonletter or nondigit or nonunderscore.
#{}
W
.next
%arg
12. method that tells an argument's place value within an array
.index
.match
object
==
13. sets a text delimiter
.pop
%arg
%
.capitalize
14. assigns a key to a hash value
%q
=>
inheritance
d
15. a string method that reverses capitalization
arguments
^
.split
.swapcase
16. Boolean AND operator
S
.between?
&&
S
17. an array method that
.each
<=>
class
d
18. method to determine if an object is an even number
integer
.even?
^
object
19. the remainder operator
constant
%
.between?
<=>
20. a single instance of a class.
object
>=
.sub
float
21. a string method that scans object for arguments - uses regular expressions.
code blocks
<
A
.scan()
22. method that tells if an argument is within the limits of two numbers
.gsub
^
.between?
local variable
23. array method that removes last item from an array
.even?
.pop
inheritance
arguments
24. an array method that returns TRUE or FALSE if the array contains specified item
w
range
$
.include?()
25. a definition of a concept in an object oriented language.
.even?
class
<<
$
26. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
kernel
%q
!=
#{}
27. a string method that substitutes ALL occurrences of a string with another.
!=
A
.gsub
<<
28. operator for "Boolean not"
!
.map
interpolation
not and or
29. a string method that capitalizes first character
.capitalize
<=
range
@
30. class inheritance operator.
struct
.gsub
<
call
31. 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
w
.pop
.match
Z
32. (regular expression)anchor for the start of a string
%arg
A
@
hash
33. a string method that uncapitalizes first character
$
.downcase
!
constant
34. a string method that substitutes ALL occurrences of a string with another.
.downcase
.gsub
.sort
struct
35. (regular expression)any digit
.capitalize
yield
d
inheritance
36. string method that determines if a string ends with a defined string
struct
end_with?
$
.split
37. methods that step through lists element by element (like each or upto or times etc)
S
iterator
hash
.chop
38. an array method that
.each
regular expressions
.index
variable
39. array method that transforms the contents of an array according to a specified set of rules
method
.map
|x|
.between?
40. a string method that removes last character
.split
!
.gsub
.chop
41. the representation of data from a start to end point
.methods
range
!
&&
42. passes value into block of code and assigns it the label of "x"
strip
|x|
flow control
integer
43. interpolation operator
!=
==
#{}
.downcase
44. a string method that capitalizes first character
.next
float
<
.capitalize
45. comparison operator for "not equal to"
regular expressions
^
range
!=
46. a string method that makes string all caps.
.upcase
.match
.downcase
<
47. Boolean not and or (lower preference)
yield
not and or
struct
$
48. a regular method that is the anchor for the end of a line
$
if?then:else
inheritance
iterator
49. using classes and objects to make real-world concepts in programming.
constant
float
object orientation
.downcase
50. (regular expression)any non-whitespace character
||
|x|
S
end_with?