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 reverses capitalization
.swapcase
|x|
.pop
.include?()
2. mixing expressions into strings
.scan()
start_with?
interpolation
.between?
3. method that tells if an argument is within the limits of two numbers
==
.sub
.between?
interpolation
4. a string method that uncapitalizes first character
.pop
.downcase
W
.sort
5. data passed to methods in parenthesis after a method's name.
#{}
.map
arguments
.between?
6. a special class that holds attributes and data but no methods.
!=
#{}
struct
.capitalize
7. a string method that removes last character
.methods
.chop
constant
code blocks
8. a whole number
string
variable
integer
%q
9. runs a proc that has been stored to a variable
.split
Z
call
.between?
10. a string method that substitutes ALL occurrences of a string with another.
s
.split
call
.gsub
11. allows for classes to relate to each other in a hierarchy
>=
W
inheritance
library
12. a placeholder for a single object that may be a number or string or list or instance of a defined class
.gsub
.each
if?then:else
variable
13. an array method that
S
.each
yield
?x
14. comparison operator for "not equal to"
W
<<
!=
==
15. (regular expression)any nonletter or nondigit or nonunderscore.
W
s
object orientation
.swapcase
16. pushes a new item onto the end of an array.
.pop
<<
$
.include?()
17. variable that can be used only where it is defined within an application
>=
w
local variable
D
18. a module of classes and or functions
array
library
.split
|x|
19. a definition of a concept in an object oriented language.
end_with?
%arg
class
|x|
20. (regular expression)any digit
.methods
d
code blocks
<<
21. (regular expression)anchor for the end of a string
ARGV
Z
w
.each
22. string method that "cleans" extra spaces from strings
strip
array
yield
Z
23. method that sorts items alphabetically
.scan()
.sort
S
#{}
24. array method that selects particular items from an array
.select
S
<
.map
25. (regular expression)anchor for the end of a string
Z
w
%w{}
break if
26. a regular method that is the anchor for the beggining of a line
arguments
S
^
Z
27. assigns a key to a hash value
=>
Z
end_with?
.include?()
28. a fixed value that begins with a capital letter such as Pi.
constant
#{}
^
if?then:else
29. a set of code within a class or object
w
s
method
!=
30. a string method that removes last character
%
end_with?
^
.chop
31. array method that transforms the contents of an array according to a specified set of rules
.sub
interpolation
.split
.map
32. a string method that makes string all caps.
s
.sub
.map
.upcase
33. (regular expression)any digit
d
A
class
.gsub
34. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
.sort
<=>
constant
.methods
35. array assignment oprator
.capitalize
^
<<
<
36. 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
.gsub
object
.methods
.match
37. the representation of data from a start to end point
<
Z
library
range
38. array method that transforms the contents of an array according to a specified set of rules
.map
%arg
.split
.upcase
39. a special array made from arguments that were added to the command line at start up.
!
.sub
ARGV
.index
40. array method that removes last item from an array
float
integer
.methods
.pop
41. (regular expression)any letter or digit or underscore
w
object
.each
%arg
42. used in an expression to manipulate objects
call
!=
S
operators
43. returns ASCII value of x
.between?
w
?x
$
44. defines an instance variable which only exists within the object it was created in.
!=
^
.methods
@
45. an array method that
@
.each
.chop
constant
46. (regular expression)any non-whitespace character
.chop
constant
S
.sub
47. a string method that changes last character to next alphabetical character
local variable
.next
|x|
.scan()
48. (regular expression)any space or tab or newline or whitespace
s
.gsub
.next
iterator
49. conditionally stops a loop
break if
.downcase
.split
Z
50. a collection of characters such as "Hello world!"
.capitalize
string
A
range