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 of classes and or functions
^
library
inheritance
<<
2. (regular expression)any nondigit
class
D
!=
&&
3. a section of code with no discrete name which is not a method by itself that can be called upon and can receive an argument.
w
.map
code blocks
yield
4. using classes and objects to make real-world concepts in programming.
object
constant
s
object orientation
5. a special class that holds attributes and data but no methods.
.downcase
struct
<=>
!=
6. a variable that lists the directories where Ruby will look for libraries
start_with?
.pop
$:.
.between?
7. an array method that returns TRUE or FALSE if the array contains specified item
.gsub
.include?()
%arg
array
8. (regular expression)any non-whitespace character
&&
.select
S
.even?
9. a fixed value that begins with a capital letter such as Pi.
.downcase
Z
hash
constant
10. method that tells an argument's place value within an array
.even?
.match
.index
s
11. (regular expression)any digit
d
.match
W
strip
12. data passed to methods in parenthesis after a method's name.
.between?
operators
!
parameters
13. (regular expression)any non-whitespace character
<<
S
W
.capitalize
14. (regular expression)any digit
range
operators
d
#{}
15. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
.scan()
<=
.index
kernel
16. interpolation operator
operators
.capitalize
strip
#{}
17. data passed to methods in parenthesis after a method's name.
not and or
operators
arguments
#{}
18. a string method that capitalizes first character
|x|
.index
.capitalize
|x|
19. the representation of data from a start to end point
class
.select
variable
range
20. (regular expression)any letter or digit or underscore
end_with?
w
^
interpolation
21. returns ASCII value of x
float
<
S
?x
22. (regular expression)anchor for the start of a string
|x|
.upcase
W
A
23. a whole number
integer
string
.even?
w
24. a single instance of a class.
W
.include?()
d
object
25. methods that step through lists element by element (like each or upto or times etc)
iterator
s
&&
.swapcase
26. passes value into block of code and assigns it the label of "x"
==
|x|
string
object orientation
27. an array method that
<<
flow control
.each
@@
28. a string method that removes last character
.chop
kernel
^
.split
29. a string method that uncapitalizes first character
.downcase
@
<=
.map
30. a collection of characters such as "Hello world!"
string
@@
code blocks
.match
31. tells ruby a value to pass while iterating a block of code
d
.match
arguments
yield
32. sets a single character text delimiter for multi-line strings
end_with?
%q
A
!=
33. comparison operator for "equal to"
.between?
.scan()
integer
==
34. an array method that returns TRUE or FALSE if the array contains specified item
.upcase
variable
.include?()
float
35. (regular expression)anchor for the start of a string
integer
ARGV
A
.swapcase
36. conditionally stops a loop
.include?()
break if
^
ARGV
37. mixing expressions into strings
hash
<
^
interpolation
38. (regular expression)any nonletter or nondigit or nonunderscore.
.each
integer
.index
W
39. sets a text delimiter
object
.chop
%arg
!
40. array method that transforms the contents of an array according to a specified set of rules
float
.map
class
string
41. the process of deciding which sections of code to execute based on conditions
flow control
.next
.pop
.capitalize
42. a string method that splits a string into an array
integer
&&
S
.split
43. operator for "Boolean not"
!
.methods
Z
$:.
44. used in an expression to manipulate objects
.pop
$:.
s
operators
45. a string method that substitutes ALL occurrences of a string with another.
object
.each
.gsub
.downcase
46. runs a proc that has been stored to a variable
.chop
s
call
iterator
47. array method that removes last item from an array
.each
A
.pop
s
48. less than or equal to (comparison operator)
&&
<
|x|
<=
49. a string method that reverses capitalization
||
end_with?
|x|
.swapcase
50. a string method that substitutes THE FIRST occurrence of a string within a string
.upcase
regular expressions
.sub
.methods