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. interpolation operator
.map
#{}
.even?
<<
2. method that tells an argument's place value within an array
.map
.pop
.index
.each
3. method that tells if an argument is within the limits of two numbers
.scan()
.between?
||
!=
4. variable that can be used only where it is defined within an application
$
code blocks
local variable
.each
5. a collection of characters such as "Hello world!"
float
string
.gsub
class
6. a collection of objects or values with associated keys
.capitalize
.swapcase
hash
.gsub
7. an array method that
.map
.each
<
constant
8. a whole number
integer
%arg
s
#{}
9. (regular expression)anchor for the end of a string
iterator
.downcase
Z
arguments
10. (regular expression)any space or tab or newline or whitespace
.chop
s
>=
||
11. (regular expression)anchor for the end of a string
Z
<<
code blocks
.upcase
12. (regular expression)anchor for the start of a string
A
not and or
&&
library
13. method that tells if an argument is within the limits of two numbers
not and or
<<
s
.between?
14. a string method that substitutes THE FIRST occurrence of a string within a string
%
.swapcase
w
.sub
15. assigns a key to a hash value
$:.
.scan()
=>
.index
16. defines an instance variable which only exists within the object it was created in.
@
end_with?
.split
$
17. (regular expression)any nonletter or nondigit or nonunderscore.
object orientation
class
$
W
18. (regular expression)any non-whitespace character
^
operators
S
D
19. Boolean AND operator
^
&&
!=
.even?
20. a regular method that is the anchor for the beggining of a line
object orientation
interpolation
^
w
21. a string method that makes string all caps.
.upcase
.sort
^
arguments
22. a string method that uncapitalizes first character
<<
.downcase
arguments
|x|
23. (regular expression)any letter or digit or underscore
if?then:else
|x|
w
.capitalize
24. passes value into block of code and assigns it the label of "x"
@
|x|
start_with?
if?then:else
25. the representation of data from a start to end point
.methods
Z
range
method
26. using classes and objects to make real-world concepts in programming.
@
Z
.scan()
object orientation
27. data passed to methods in parenthesis after a method's name.
#{}
parameters
^
d
28. (regular expression)any space or tab or newline or whitespace
A
object orientation
.capitalize
s
29. an array method that returns TRUE or FALSE if the array contains specified item
.downcase
library
.include?()
W
30. a placeholder for a single object that may be a number or string or list or instance of a defined class
variable
|x|
.between?
^
31. defines a class variable. Can be used anywhere within a class
D
@@
regular expressions
%arg
32. array method that removes last item from an array
.pop
operators
W
kernel
33. a string method that changes last character to next alphabetical character
?x
if?then:else
!
.next
34. a string method that capitalizes first character
@@
.capitalize
.select
S
35. method that tells an argument's place value within an array
.index
code blocks
constant
float
36. string method that "cleans" extra spaces from strings
strip
constant
.scan()
.map
37. array assignment oprator
.map
W
==
<<
38. a string method that removes last character
w
operators
s
.chop
39. allows for classes to relate to each other in a hierarchy
.index
s
inheritance
.each
40. string method that determines if a string ends with a defined string
.between?
end_with?
string
.sub
41. passes value into block of code and assigns it the label of "x"
kernel
.gsub
.sub
|x|
42. a way to describe patterns in text
?x
class
regular expressions
%arg
43. greater than or equal to (comparison operator)
%q
>=
library
.swapcase
44. sets a single character text delimiter for multi-line strings
#{}
float
%
%q
45. a module of classes and or functions
end_with?
library
.between?
flow control
46. defines array of multiple elements seperated by a space
constant
operators
.map
%w{}
47. class inheritance operator.
<
.sub
.methods
not and or
48. tells you all methods that an object may invoke.
code blocks
.methods
hash
%w{}
49. method that sorts items alphabetically
w
local variable
method
.sort
50. data passed to methods in parenthesis after a method's name.
.even?
arguments
<<
.upcase