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 removes last character
.chop
@
^
<<
2. symbol for a global variable which can be called from anywhere in an application.
@
$:.
$
==
3. method that tells an argument's place value within an array
constant
.index
>=
.pop
4. (regular expression)any letter or digit or underscore
class
w
.chop
iterator
5. sets a single character text delimiter for multi-line strings
.between?
&&
.map
%q
6. data passed to methods in parenthesis after a method's name.
arguments
%w{}
W
^
7. (regular expression)any nondigit
.chop
D
hash
$
8. defines array of multiple elements seperated by a space
flow control
%w{}
.sub
iterator
9. method to determine if an object is an even number
@
interpolation
.next
.even?
10. the ternary operator if?then:else
if?then:else
$
&&
method
11. passes value into block of code and assigns it the label of "x"
.methods
|x|
<<
interpolation
12. mixing expressions into strings
W
.sub
interpolation
.select
13. comparison operator for "equal to"
.gsub
S
==
.capitalize
14. the representation of data from a start to end point
range
.next
S
.capitalize
15. method that tells if an argument is within the limits of two numbers
.between?
|x|
.each
.select
16. a string method that substitutes ALL occurrences of a string with another.
.include?()
.scan()
?x
.gsub
17. (regular expression)any digit
d
s
parameters
string
18. class inheritance operator.
<
.even?
object
.between?
19. 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
.swapcase
.include?()
S
.match
20. method that tells if an argument is within the limits of two numbers
end_with?
.split
.between?
.chop
21. 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.
.next
w
code blocks
.select
22. string method that determines if a string starts with a defined string
hash
W
start_with?
||
23. the process of deciding which sections of code to execute based on conditions
flow control
.gsub
<=>
.index
24. comparison operator for "not equal to"
!=
S
interpolation
^
25. (regular expression)any nondigit
yield
strip
D
.index
26. method that sorts items alphabetically
operators
.gsub
.sort
.sub
27. methods that step through lists element by element (like each or upto or times etc)
.chop
.next
.capitalize
iterator
28. allows for classes to relate to each other in a hierarchy
inheritance
yield
!
.sort
29. array method that selects particular items from an array
|x|
inheritance
#{}
.select
30. (regular expression)any space or tab or newline or whitespace
s
.select
array
&&
31. sets a text delimiter
float
%arg
^
!=
32. Boolean OR operator
.even?
&&
.pop
||
33. comparison operator for "not equal to"
range
$
!=
@@
34. array method that removes last item from an array
.pop
S
s
integer
35. (regular expression)anchor for the end of a string
<
flow control
Z
.map
36. a collection of objects with a defined order
s
array
&&
end_with?
37. an array method that returns TRUE or FALSE if the array contains specified item
^
.pop
.include?()
%w{}
38. a string method that splits a string into an array
.split
.next
!
W
39. the remainder operator
%
start_with?
Z
==
40. runs a proc that has been stored to a variable
.match
call
.index
^
41. array method that transforms the contents of an array according to a specified set of rules
!
.map
.even?
.match
42. a collection of characters such as "Hello world!"
string
operators
object orientation
d
43. a regular method that is the anchor for the beggining of a line
|x|
hash
.split
^
44. conditionally stops a loop
$
break if
.next
?x
45. greater than or equal to (comparison operator)
>=
<=
d
kernel
46. a string method that substitutes ALL occurrences of a string with another.
.split
break if
.gsub
object
47. a module of classes and or functions
@@
library
hash
%w{}
48. (regular expression)any non-whitespace character
class
S
regular expressions
>=
49. method to determine if an object is an even number
.scan()
.even?
end_with?
.swapcase
50. a regular method that is the anchor for the beggining of a line
^
.select
start_with?
D