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. method that tells if an argument is within the limits of two numbers
local variable
.sort
.between?
=>
2. tells you all methods that an object may invoke.
operators
.methods
range
!
3. operator for "Boolean not"
!
object orientation
.between?
object
4. (regular expression)any nondigit
D
integer
kernel
#{}
5. an array method that
%q
.each
class
start_with?
6. a placeholder for a single object that may be a number or string or list or instance of a defined class
flow control
!
variable
%w{}
7. (regular expression)any non-whitespace character
class
S
<<
parameters
8. a set of code within a class or object
local variable
.between?
method
call
9. tells ruby a value to pass while iterating a block of code
%
yield
inheritance
.next
10. passes value into block of code and assigns it the label of "x"
not and or
.swapcase
!
|x|
11. a whole number
.chop
.pop
integer
call
12. array method that transforms the contents of an array according to a specified set of rules
.index
.map
d
.sub
13. a string method that uncapitalizes first character
.downcase
.index
^
%w{}
14. a string method that scans object for arguments - uses regular expressions.
constant
inheritance
end_with?
.scan()
15. a special class that holds attributes and data but no methods.
%arg
struct
S
range
16. Boolean not and or (lower preference)
class
.pop
w
not and or
17. an array method that
.each
Z
.downcase
>=
18. sets a single character text delimiter for multi-line strings
range
ARGV
%q
break if
19. method that sorts items alphabetically
.capitalize
D
.sort
#{}
20. 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.
D
code blocks
%arg
.include?()
21. comparison operator for "not equal to"
iterator
!=
!
end_with?
22. a string method that capitalizes first character
.capitalize
.methods
variable
regular expressions
23. a string method that uncapitalizes first character
A
.gsub
.downcase
.methods
24. a regular method that is the anchor for the end of a line
range
$
object orientation
.capitalize
25. sets a text delimiter
.map
%arg
.gsub
@
26. method to determine if an object is an even number
.even?
W
.sub
^
27. a regular method that is the anchor for the beggining of a line
#{}
^
.map
w
28. a definition of a concept in an object oriented language.
.map
class
.capitalize
?x
29. array assignment oprator
yield
<<
.between?
.include?()
30. (regular expression)any letter or digit or underscore
!=
hash
w
.index
31. returns ASCII value of x
?x
<<
%
|x|
32. data passed to methods in parenthesis after a method's name.
.between?
ARGV
range
parameters
33. a string method that substitutes THE FIRST occurrence of a string within a string
S
.downcase
.sub
=>
34. returns ASCII value of x
?x
class
!=
yield
35. string method that determines if a string starts with a defined string
.downcase
range
start_with?
S
36. an array method that returns TRUE or FALSE if the array contains specified item
.include?()
.sub
struct
.scan()
37. a collection of objects or values with associated keys
hash
.select
#{}
.include?()
38. a collection of objects with a defined order
D
object
array
!=
39. defines an instance variable which only exists within the object it was created in.
class
@
.match
start_with?
40. (regular expression)any nonletter or nondigit or nonunderscore.
.scan()
$
W
method
41. Boolean OR operator
!
flow control
||
.chop
42. comparison operator for "equal to"
!=
object orientation
.between?
==
43. assigns a key to a hash value
$
=>
yield
code blocks
44. (regular expression)any nondigit
D
not and or
.pop
S
45. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
kernel
^
end_with?
.methods
46. greater than or equal to (comparison operator)
==
>=
.include?()
.downcase
47. passes value into block of code and assigns it the label of "x"
.include?()
.pop
|x|
string
48. a string method that makes string all caps.
.upcase
array
.next
A
49. a string method that reverses capitalization
.include?()
D
.swapcase
!=
50. using classes and objects to make real-world concepts in programming.
^
.include?()
.gsub
object orientation