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. returns ASCII value of x
yield
<<
?x
A
2. method that tells an argument's place value within an array
yield
iterator
.index
.each
3. passes value into block of code and assigns it the label of "x"
|x|
w
integer
d
4. defines a class variable. Can be used anywhere within a class
.downcase
.sub
code blocks
@@
5. array method that removes last item from an array
.pop
call
constant
$
6. method that tells if an argument is within the limits of two numbers
library
!=
.chop
.between?
7. a regular method that is the anchor for the beggining of a line
^
.match
integer
string
8. conditionally stops a loop
.downcase
.include?()
break if
S
9. (regular expression)anchor for the end of a string
range
<<
^
Z
10. string method that "cleans" extra spaces from strings
D
strip
.swapcase
^
11. a string method that substitutes ALL occurrences of a string with another.
.gsub
strip
|x|
W
12. string method that determines if a string ends with a defined string
arguments
hash
string
end_with?
13. array method that removes last item from an array
^
integer
.pop
strip
14. returns ASCII value of x
.each
range
?x
.next
15. a special array made from arguments that were added to the command line at start up.
flow control
ARGV
.pop
parameters
16. operator for "Boolean not"
array
Z
!
.between?
17. symbol for a global variable which can be called from anywhere in an application.
end_with?
.scan()
$
.split
18. a string method that removes last character
?x
.index
local variable
.chop
19. sets a text delimiter
=>
.pop
%arg
@
20. (regular expression)anchor for the end of a string
s
.downcase
Z
<=
21. array method that transforms the contents of an array according to a specified set of rules
.map
operators
.include?()
<<
22. a collection of objects with a defined order
hash
interpolation
.methods
array
23. a string method that changes last character to next alphabetical character
flow control
#{}
.next
<<
24. a string method that splits a string into an array
.upcase
.split
interpolation
<<
25. a string method that substitutes THE FIRST occurrence of a string within a string
.map
code blocks
|x|
.sub
26. using classes and objects to make real-world concepts in programming.
!=
object orientation
@
%arg
27. method to determine if an object is an even number
<=
local variable
.even?
break if
28. Boolean not and or (lower preference)
constant
!
not and or
range
29. sets a single character text delimiter for multi-line strings
||
%q
call
.gsub
30. a special class that holds attributes and data but no methods.
struct
||
d
s
31. a set of code within a class or object
^
.sub
.match
method
32. less than or equal to (comparison operator)
.each
inheritance
.pop
<=
33. allows for classes to relate to each other in a hierarchy
code blocks
S
.gsub
inheritance
34. a variable that lists the directories where Ruby will look for libraries
W
.sub
$:.
string
35. a regular method that is the anchor for the end of a line
$
if?then:else
operators
integer
36. a placeholder for a single object that may be a number or string or list or instance of a defined class
%w{}
variable
.methods
s
37. a string method that changes last character to next alphabetical character
<<
variable
.next
s
38. (regular expression)any nondigit
D
Z
.sort
variable
39. a string method that capitalizes first character
.capitalize
end_with?
break if
^
40. (regular expression)any nondigit
.chop
D
|x|
%
41. variable that can be used only where it is defined within an application
local variable
d
.scan()
S
42. a regular method that is the anchor for the beggining of a line
^
!=
<<
$
43. a collection of objects or values with associated keys
!=
<=>
hash
operators
44. (regular expression)any space or tab or newline or whitespace
#{}
D
.pop
s
45. a string method that substituition. Requires 2 arguments.
yield
local variable
constant
.sub
46. an array method that
constant
<<
.each
.capitalize
47. mixing expressions into strings
interpolation
.sub
.between?
method
48. a single instance of a class.
object
strip
Z
.even?
49. (regular expression)any non-whitespace character
operators
.next
S
W
50. greater than or equal to (comparison operator)
strip
.capitalize
>=
S