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. array method that transforms the contents of an array according to a specified set of rules
.between?
@
.map
S
2. defines array of multiple elements seperated by a space
%w{}
.each
class
!
3. (regular expression)anchor for the end of a string
|x|
%
Z
S
4. symbol for a global variable which can be called from anywhere in an application.
object orientation
constant
.between?
$
5. tells ruby a value to pass while iterating a block of code
yield
constant
array
.each
6. passes value into block of code and assigns it the label of "x"
Z
s
|x|
.map
7. an array method that
.each
d
.index
w
8. (regular expression)any space or tab or newline or whitespace
s
^
code blocks
.next
9. array assignment oprator
.match
<<
.between?
.each
10. a set of code within a class or object
.sub
method
.even?
start_with?
11. passes value into block of code and assigns it the label of "x"
class
|x|
.sub
string
12. less than or equal to (comparison operator)
iterator
Z
<=
if?then:else
13. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
#{}
start_with?
<=>
#{}
14. (regular expression)any non-whitespace character
Z
S
w
yield
15. class inheritance operator.
.scan()
<
<=>
kernel
16. (regular expression)any digit
start_with?
end_with?
.sub
d
17. a string method that substituition. Requires 2 arguments.
?x
call
parameters
.sub
18. variable that can be used only where it is defined within an application
A
^
if?then:else
local variable
19. used in an expression to manipulate objects
operators
<=>
.include?()
$
20. comparison operator for "not equal to"
?x
.index
!=
.each
21. (regular expression)any space or tab or newline or whitespace
.methods
<=
s
.between?
22. data passed to methods in parenthesis after a method's name.
arguments
class
.downcase
.gsub
23. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
constant
flow control
w
?x
24. greater than or equal to (comparison operator)
interpolation
.capitalize
>=
.sort
25. interpolation operator
.index
inheritance
#{}
integer
26. method to determine if an object is an even number
iterator
.capitalize
.sort
.even?
27. a collection of objects or values with associated keys
hash
==
<=
&&
28. a special array made from arguments that were added to the command line at start up.
w
^
ARGV
w
29. a regular method that is the anchor for the beggining of a line
.chop
^
.match
&&
30. method that sorts items alphabetically
.select
.sort
interpolation
%
31. (regular expression)anchor for the start of a string
.pop
A
string
.downcase
32. 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
interpolation
variable
.match
#{}
33. a string method that changes last character to next alphabetical character
.map
.next
.split
#{}
34. runs a proc that has been stored to a variable
|x|
.index
.even?
call
35. a whole number
#{}
integer
parameters
variable
36. a regular method that is the anchor for the end of a line
end_with?
=>
$
||
37. sets a single character text delimiter for multi-line strings
|x|
float
%q
.sub
38. a collection of characters such as "Hello world!"
!
local variable
string
#{}
39. returns ASCII value of x
<
?x
.sub
A
40. using classes and objects to make real-world concepts in programming.
method
object orientation
.methods
<=>
41. a way to describe patterns in text
start_with?
regular expressions
interpolation
constant
42. 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.
.include?()
S
operators
code blocks
43. Boolean not and or (lower preference)
not and or
.chop
||
.map
44. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
kernel
.index
.even?
<
45. a string method that uncapitalizes first character
&&
constant
%arg
.downcase
46. a definition of a concept in an object oriented language.
class
.methods
library
.sort
47. a string method that uncapitalizes first character
strip
.downcase
$:.
^
48. a string method that splits a string into an array
!=
constant
S
.split
49. an array method that
.next
@
parameters
.each
50. conditionally stops a loop
&&
library
break if
^