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. an array method that
w
class
.each
.upcase
2. a string method that substitutes ALL occurrences of a string with another.
%arg
library
<<
.gsub
3. passes value into block of code and assigns it the label of "x"
!
string
|x|
.sub
4. interpolation operator
A
#{}
.index
array
5. (regular expression)any non-whitespace character
S
array
.sub
.next
6. allows for classes to relate to each other in a hierarchy
inheritance
local variable
integer
.sub
7. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
W
local variable
s
<=>
8. (regular expression)any nondigit
D
w
<=>
||
9. tells you all methods that an object may invoke.
.capitalize
.methods
^
@@
10. a string method that uncapitalizes first character
.between?
.downcase
class
!=
11. method that tells an argument's place value within an array
.chop
w
.index
if?then:else
12. a set of code within a class or object
inheritance
.upcase
method
.index
13. array method that transforms the contents of an array according to a specified set of rules
.match
!=
.map
.index
14. interpolation operator
d
range
#{}
variable
15. a way to describe patterns in text
.between?
regular expressions
.downcase
parameters
16. comparison operator for "not equal to"
<<
.scan()
.pop
!=
17. defines a class variable. Can be used anywhere within a class
$
?x
@@
.next
18. pushes a new item onto the end of an array.
%w{}
<<
library
operators
19. a string method that makes string all caps.
.upcase
D
==
class
20. Boolean AND operator
.pop
.select
&&
%q
21. data passed to methods in parenthesis after a method's name.
^
==
%arg
arguments
22. a string method that reverses capitalization
.include?()
==
<<
.swapcase
23. passes value into block of code and assigns it the label of "x"
.index
variable
^
|x|
24. string method that determines if a string ends with a defined string
.match
float
#{}
end_with?
25. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
object
kernel
operators
interpolation
26. (regular expression)anchor for the start of a string
string
Z
.gsub
A
27. sets a text delimiter
%arg
.pop
if?then:else
<<
28. the ternary operator if?then:else
if?then:else
.capitalize
interpolation
$
29. (regular expression)any nonletter or nondigit or nonunderscore.
inheritance
W
.include?()
.downcase
30. the representation of data from a start to end point
.each
s
range
.swapcase
31. (regular expression)any non-whitespace character
S
.even?
$:.
string
32. (regular expression)any space or tab or newline or whitespace
s
!
constant
.scan()
33. (regular expression)any nonletter or nondigit or nonunderscore.
.between?
?x
$
W
34. a variable that lists the directories where Ruby will look for libraries
.between?
library
.sub
$:.
35. defines array of multiple elements seperated by a space
!
string
.map
%w{}
36. array method that removes last item from an array
.each
.pop
!
&&
37. runs a proc that has been stored to a variable
.index
.methods
call
w
38. a string method that removes last character
.chop
<<
$:.
object orientation
39. operator for "Boolean not"
<=>
!
.include?()
%
40. method to determine if an object is an even number
.between?
%
.even?
string
41. (regular expression)any digit
d
yield
class
.swapcase
42. a collection of objects or values with associated keys
@
hash
.pop
%arg
43. data passed to methods in parenthesis after a method's name.
.select
?x
parameters
.split
44. comparison operator for "equal to"
.upcase
==
.index
.between?
45. a fixed value that begins with a capital letter such as Pi.
#{}
W
constant
.match
46. using classes and objects to make real-world concepts in programming.
arguments
.split
S
object orientation
47. a string method that scans object for arguments - uses regular expressions.
code blocks
.scan()
D
.downcase
48. sets a single character text delimiter for multi-line strings
.each
.map
%q
w
49. array method that selects particular items from an array
inheritance
.downcase
.downcase
.select
50. (regular expression)any space or tab or newline or whitespace
.next
.capitalize
s
<