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 capitalizes first character
.each
.capitalize
local variable
.pop
2. 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
.match
.map
.chop
.split
3. data passed to methods in parenthesis after a method's name.
.scan()
|x|
parameters
call
4. string method that determines if a string starts with a defined string
.sub
.between?
float
start_with?
5. a string method that substitutes ALL occurrences of a string with another.
@
%arg
.gsub
|x|
6. defines array of multiple elements seperated by a space
%w{}
.even?
method
^
7. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
.map
constant
local variable
.scan()
8. tells ruby a value to pass while iterating a block of code
.each
yield
interpolation
.between?
9. (regular expression)any non-whitespace character
.map
.gsub
.select
S
10. defines a class variable. Can be used anywhere within a class
end_with?
@@
.index
S
11. array method that selects particular items from an array
.swapcase
.select
|x|
.split
12. an array method that
.each
%arg
struct
%w{}
13. (regular expression)anchor for the start of a string
.sub
.capitalize
A
.capitalize
14. symbol for a global variable which can be called from anywhere in an application.
$
.upcase
not and or
Z
15. a string method that substitutes ALL occurrences of a string with another.
.next
.select
!=
.gsub
16. (regular expression)any nondigit
S
D
.each
%
17. tells you all methods that an object may invoke.
range
.methods
constant
.index
18. array assignment oprator
<<
regular expressions
start_with?
.next
19. a regular method that is the anchor for the end of a line
D
.include?()
$
break if
20. data passed to methods in parenthesis after a method's name.
arguments
end_with?
>=
.methods
21. interpolation operator
A
hash
#{}
method
22. a collection of objects or values with associated keys
hash
not and or
class
@@
23. sets a single character text delimiter for multi-line strings
>=
%w{}
%q
.each
24. string method that "cleans" extra spaces from strings
<=>
strip
object orientation
!
25. comparison operator for "not equal to"
$:.
.capitalize
.next
!=
26. array method that removes last item from an array
library
w
.include?()
.pop
27. Boolean not and or (lower preference)
%
inheritance
s
not and or
28. array method that transforms the contents of an array according to a specified set of rules
.next
.map
|x|
!=
29. tells you all methods that an object may invoke.
d
Z
.methods
$
30. pushes a new item onto the end of an array.
.methods
!=
variable
<<
31. allows for classes to relate to each other in a hierarchy
inheritance
.methods
Z
.pop
32. a way to describe patterns in text
%w{}
.downcase
regular expressions
operators
33. a string method that makes string all caps.
.include?()
.upcase
.methods
.split
34. method to determine if an object is an even number
.even?
$
!=
<<
35. sets a text delimiter
method
constant
strip
%arg
36. array method that removes last item from an array
<=
.chop
^
.pop
37. a string method that capitalizes first character
array
=>
.next
.capitalize
38. (regular expression)any nonletter or nondigit or nonunderscore.
hash
@@
W
&&
39. (regular expression)any digit
arguments
.map
d
$
40. method that tells if an argument is within the limits of two numbers
arguments
.between?
.gsub
#{}
41. a string method that scans object for arguments - uses regular expressions.
hash
library
.scan()
.index
42. a string method that changes last character to next alphabetical character
.next
D
array
@@
43. an array method that returns TRUE or FALSE if the array contains specified item
||
.include?()
inheritance
code blocks
44. operator for "Boolean not"
.methods
!
.index
%w{}
45. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
d
constant
.chop
<=>
46. a placeholder for a single object that may be a number or string or list or instance of a defined class
&&
.pop
|x|
variable
47. interpolation operator
.map
#{}
|x|
%w{}
48. comparison operator for "not equal to"
^
object
$:.
!=
49. (regular expression)any non-whitespace character
break if
.sort
S
%w{}
50. a number with a decimal point such as 1.0 or 3.1
range
!
?x
float