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 module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
.even?
kernel
|x|
w
2. interpolation operator
|x|
.map
#{}
W
3. (regular expression)anchor for the start of a string
constant
A
D
.each
4. method that tells an argument's place value within an array
W
kernel
constant
.index
5. data passed to methods in parenthesis after a method's name.
arguments
w
@
.index
6. a string method that reverses capitalization
.gsub
.swapcase
==
S
7. a whole number
.between?
.upcase
!=
integer
8. interpolation operator
.between?
<
#{}
not and or
9. pushes a new item onto the end of an array.
.downcase
interpolation
<<
w
10. array method that removes last item from an array
W
.include?()
.include?()
.pop
11. a string method that uncapitalizes first character
.downcase
?x
.map
object
12. allows for classes to relate to each other in a hierarchy
method
?x
inheritance
.each
13. method to determine if an object is an even number
$
.even?
#{}
float
14. 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
yield
.match
object
operators
15. a variable that lists the directories where Ruby will look for libraries
$:.
<<
^
.pop
16. a way to describe patterns in text
arguments
regular expressions
.gsub
.index
17. a string method that scans object for arguments - uses regular expressions.
!=
.scan()
<<
d
18. (regular expression)any nondigit
end_with?
s
D
break if
19. tells ruby a value to pass while iterating a block of code
!=
D
strip
yield
20. defines an instance variable which only exists within the object it was created in.
||
!
?x
@
21. method to determine if an object is an even number
.scan()
method
break if
.even?
22. a string method that changes last character to next alphabetical character
.between?
|x|
.next
.between?
23. returns ASCII value of x
?x
strip
$:.
float
24. a collection of characters such as "Hello world!"
object
string
.methods
.include?()
25. used in an expression to manipulate objects
strip
.between?
operators
D
26. a single instance of a class.
array
object
@@
.pop
27. Boolean not and or (lower preference)
local variable
not and or
d
.index
28. a string method that uncapitalizes first character
.downcase
?x
||
if?then:else
29. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
@
constant
.match
hash
30. a special class that holds attributes and data but no methods.
S
$
struct
!=
31. a regular method that is the anchor for the beggining of a line
interpolation
A
^
break if
32. conditionally stops a loop
d
break if
object
.methods
33. a string method that removes last character
.chop
method
.index
array
34. sets a text delimiter
Z
%arg
.scan()
@@
35. the process of deciding which sections of code to execute based on conditions
|x|
library
not and or
flow control
36. a string method that substitutes ALL occurrences of a string with another.
.swapcase
w
.gsub
object
37. a string method that scans object for arguments - uses regular expressions.
method
.index
.scan()
constant
38. operator for "Boolean not"
.swapcase
.sub
!
.capitalize
39. defines a class variable. Can be used anywhere within a class
.between?
.next
@@
<<
40. an array method that returns TRUE or FALSE if the array contains specified item
.sort
method
constant
.include?()
41. (regular expression)anchor for the end of a string
%q
#{}
d
Z
42. using classes and objects to make real-world concepts in programming.
object orientation
break if
end_with?
w
43. an array method that
.each
inheritance
class
#{}
44. a string method that substitutes ALL occurrences of a string with another.
$:.
A
.gsub
.methods
45. (regular expression)any digit
d
!=
Z
!
46. a string method that changes last character to next alphabetical character
call
.pop
.next
yield
47. passes value into block of code and assigns it the label of "x"
|x|
code blocks
<<
w
48. a string method that substituition. Requires 2 arguments.
.match
constant
.swapcase
.sub
49. string method that "cleans" extra spaces from strings
.between?
<<
string
strip
50. variable that can be used only where it is defined within an application
break if
W
local variable
S