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