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 string method that removes last character
.chop
.between?
iterator
operators
2. array assignment oprator
=>
.each
<<
.pop
3. an array method that returns TRUE or FALSE if the array contains specified item
.include?()
d
variable
integer
4. a whole number
<<
.capitalize
.each
integer
5. passes value into block of code and assigns it the label of "x"
|x|
$:.
break if
library
6. a string method that splits a string into an array
.downcase
||
|x|
.split
7. a special class that holds attributes and data but no methods.
&&
<<
struct
call
8. (regular expression)anchor for the end of a string
object
.pop
Z
.map
9. runs a proc that has been stored to a variable
integer
.downcase
.next
call
10. interpolation operator
!
#{}
|x|
?x
11. a set of code within a class or object
.split
S
#{}
method
12. allows for classes to relate to each other in a hierarchy
<<
local variable
&&
inheritance
13. an array method that
constant
.each
%arg
?x
14. returns ASCII value of x
?x
@@
w
kernel
15. sets a text delimiter
^
@@
||
%arg
16. a string method that substitutes ALL occurrences of a string with another.
d
.gsub
!
Z
17. array method that transforms the contents of an array according to a specified set of rules
^
.map
||
.next
18. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
#{}
yield
@@
kernel
19. passes value into block of code and assigns it the label of "x"
|x|
struct
class
.sub
20. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
float
variable
%arg
<=>
21. a definition of a concept in an object oriented language.
class
.sort
flow control
^
22. a string method that makes string all caps.
.downcase
.upcase
.split
inheritance
23. string method that determines if a string ends with a defined string
library
end_with?
.next
w
24. array method that transforms the contents of an array according to a specified set of rules
S
%q
.chop
.map
25. method that tells if an argument is within the limits of two numbers
.map
Z
.between?
.chop
26. returns ASCII value of x
string
.each
?x
%
27. symbol for a global variable which can be called from anywhere in an application.
%
$
struct
inheritance
28. (regular expression)anchor for the start of a string
.chop
Z
A
kernel
29. a string method that capitalizes first character
.capitalize
!
w
w
30. (regular expression)any nondigit
w
D
.chop
$
31. defines an instance variable which only exists within the object it was created in.
.capitalize
hash
@
iterator
32. a regular method that is the anchor for the beggining of a line
.upcase
.next
$
^
33. a module of classes and or functions
.downcase
!
library
.pop
34. variable that can be used only where it is defined within an application
local variable
.index
.sub
.sort
35. a regular method that is the anchor for the beggining of a line
call
w
^
.next
36. the representation of data from a start to end point
end_with?
.swapcase
s
range
37. used in an expression to manipulate objects
|x|
w
.include?()
operators
38. operator for "Boolean not"
!
.map
<
.between?
39. greater than or equal to (comparison operator)
flow control
>=
struct
W
40. a string method that uncapitalizes first character
.each
.index
.gsub
.downcase
41. a string method that changes last character to next alphabetical character
=>
.even?
.next
#{}
42. (regular expression)any digit
.even?
d
?x
yield
43. pushes a new item onto the end of an array.
.next
|x|
<<
.methods
44. tells you all methods that an object may invoke.
#{}
.methods
.capitalize
.map
45. 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
!=
.sort
.match
variable
46. data passed to methods in parenthesis after a method's name.
arguments
w
<<
.pop
47. a string method that capitalizes first character
A
%q
.capitalize
!=
48. conditionally stops a loop
range
#{}
break if
code blocks
49. a string method that removes last character
s
.between?
.chop
iterator
50. a string method that scans object for arguments - uses regular expressions.
.scan()
$
object orientation
ARGV