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 transforms the contents of an array according to a specified set of rules
.between?
.between?
strip
.map
2. an array method that returns TRUE or FALSE if the array contains specified item
.match
parameters
inheritance
.include?()
3. a module of classes and or functions
|x|
^
library
%arg
4. a collection of characters such as "Hello world!"
.each
start_with?
string
.map
5. a collection of objects with a defined order
hash
!=
.pop
array
6. mixing expressions into strings
float
interpolation
.even?
break if
7. interpolation operator
!=
#{}
method
.next
8. array assignment oprator
array
not and or
.swapcase
<<
9. (regular expression)any space or tab or newline or whitespace
regular expressions
s
.match
|x|
10. a string method that splits a string into an array
.split
w
.map
%w{}
11. string method that "cleans" extra spaces from strings
strip
.each
.next
.match
12. (regular expression)any nonletter or nondigit or nonunderscore.
W
.match
break if
@
13. class inheritance operator.
inheritance
<
|x|
.next
14. (regular expression)any nonletter or nondigit or nonunderscore.
D
s
object
W
15. greater than or equal to (comparison operator)
integer
.downcase
.each
>=
16. a string method that changes last character to next alphabetical character
.next
.map
.scan()
S
17. a placeholder for a single object that may be a number or string or list or instance of a defined class
array
variable
.pop
.next
18. (regular expression)any nondigit
iterator
D
float
w
19. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
w
@
<=>
%w{}
20. Boolean OR operator
||
.next
<
string
21. a collection of objects or values with associated keys
end_with?
hash
arguments
<<
22. data passed to methods in parenthesis after a method's name.
A
.chop
float
arguments
23. defines an instance variable which only exists within the object it was created in.
@
array
break if
!=
24. a definition of a concept in an object oriented language.
integer
.chop
class
>=
25. a single instance of a class.
.each
object
if?then:else
!
26. method that tells if an argument is within the limits of two numbers
!
class
.between?
constant
27. returns ASCII value of x
not and or
?x
.capitalize
object orientation
28. (regular expression)any digit
yield
.downcase
%w{}
d
29. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
.sub
W
|x|
constant
30. variable that can be used only where it is defined within an application
!
.methods
A
local variable
31. a string method that substitutes THE FIRST occurrence of a string within a string
?x
.sub
.capitalize
.even?
32. comparison operator for "not equal to"
.downcase
^
.pop
!=
33. method to determine if an object is an even number
end_with?
.even?
.map
.scan()
34. an array method that
%arg
.each
Z
.sub
35. (regular expression)anchor for the start of a string
=>
d
|x|
A
36. method to determine if an object is an even number
^
.even?
$
!=
37. (regular expression)anchor for the end of a string
=>
#{}
Z
.include?()
38. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
.methods
@
.upcase
kernel
39. a string method that substitutes ALL occurrences of a string with another.
.include?()
.methods
library
.gsub
40. operator for "Boolean not"
strip
%arg
.index
!
41. operator for "Boolean not"
$:.
==
!
w
42. a string method that makes string all caps.
.upcase
<<
.split
^
43. (regular expression)any nondigit
Z
D
float
W
44. method that tells an argument's place value within an array
.even?
.index
.map
S
45. returns ASCII value of x
.scan()
.map
?x
code blocks
46. conditionally stops a loop
.map
break if
%q
%arg
47. a definition of a concept in an object oriented language.
class
=>
s
arguments
48. an array method that
.gsub
.each
hash
interpolation
49. a string method that uncapitalizes first character
.downcase
start_with?
yield
code blocks
50. a fixed value that begins with a capital letter such as Pi.
code blocks
.downcase
constant
range