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. tells you all methods that an object may invoke.
!
.methods
<<
|x|
2. array assignment oprator
.pop
.between?
hash
<<
3. a definition of a concept in an object oriented language.
.match
S
class
.sub
4. method that sorts items alphabetically
.pop
@
?x
.sort
5. array method that transforms the contents of an array according to a specified set of rules
<<
<=
.map
D
6. a way to describe patterns in text
.next
regular expressions
.index
class
7. 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
D
A
.downcase
.match
8. (regular expression)any nonletter or nondigit or nonunderscore.
method
.gsub
W
$
9. (regular expression)any letter or digit or underscore
w
$:.
class
!=
10. Boolean AND operator
%w{}
==
&&
W
11. an array method that returns TRUE or FALSE if the array contains specified item
call
.include?()
.map
.each
12. (regular expression)anchor for the end of a string
|x|
Z
inheritance
integer
13. a regular method that is the anchor for the end of a line
#{}
^
$
s
14. (regular expression)any nonletter or nondigit or nonunderscore.
W
.swapcase
@@
Z
15. a string method that capitalizes first character
.capitalize
$
S
flow control
16. a set of code within a class or object
method
^
@
.between?
17. passes value into block of code and assigns it the label of "x"
|x|
inheritance
iterator
.downcase
18. defines array of multiple elements seperated by a space
!=
.match
%w{}
<<
19. method that tells if an argument is within the limits of two numbers
local variable
.pop
.between?
<=
20. assigns a key to a hash value
=>
.each
variable
end_with?
21. allows for classes to relate to each other in a hierarchy
w
string
inheritance
.gsub
22. a string method that splits a string into an array
.split
W
.methods
class
23. method that tells if an argument is within the limits of two numbers
W
.between?
.map
break if
24. a string method that removes last character
.methods
.scan()
s
.chop
25. a string method that reverses capitalization
&&
.swapcase
.sub
constant
26. (regular expression)any non-whitespace character
.sub
!=
d
S
27. the remainder operator
|x|
%
object orientation
.upcase
28. a definition of a concept in an object oriented language.
!
.split
class
Z
29. the process of deciding which sections of code to execute based on conditions
<=>
flow control
.scan()
class
30. (regular expression)any digit
.downcase
.sub
local variable
d
31. method that tells an argument's place value within an array
<<
||
$
.index
32. methods that step through lists element by element (like each or upto or times etc)
iterator
.include?()
Z
A
33. (regular expression)anchor for the end of a string
Z
#{}
<
range
34. a single instance of a class.
object
struct
.chop
class
35. a special class that holds attributes and data but no methods.
struct
d
.chop
.capitalize
36. a string method that changes last character to next alphabetical character
.sub
%
operators
.next
37. defines an instance variable which only exists within the object it was created in.
.even?
s
@
#{}
38. data passed to methods in parenthesis after a method's name.
parameters
!=
.capitalize
$
39. a collection of characters such as "Hello world!"
A
break if
W
string
40. a special array made from arguments that were added to the command line at start up.
d
.index
ARGV
.between?
41. a variable that lists the directories where Ruby will look for libraries
>=
W
s
$:.
42. used in an expression to manipulate objects
operators
.next
call
W
43. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
.next
kernel
.even?
.pop
44. data passed to methods in parenthesis after a method's name.
arguments
?x
>=
parameters
45. a module of classes and or functions
library
@@
.sub
object orientation
46. returns ASCII value of x
Z
integer
?x
^
47. (regular expression)anchor for the start of a string
@
.split
s
A
48. string method that determines if a string starts with a defined string
D
start_with?
.chop
^
49. a fixed value that begins with a capital letter such as Pi.
@@
constant
.sort
>=
50. (regular expression)any nondigit
D
not and or
interpolation
code blocks