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. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
regular expressions
S
start_with?
constant
2. class inheritance operator.
<<
@@
%q
<
3. method that sorts items alphabetically
class
not and or
.sort
^
4. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
.match
if?then:else
A
<=>
5. a collection of objects with a defined order
.pop
object
array
iterator
6. a string method that capitalizes first character
.capitalize
.between?
W
%q
7. defines array of multiple elements seperated by a space
S
%w{}
.each
|x|
8. interpolation operator
$:.
!=
#{}
&&
9. a string method that substituition. Requires 2 arguments.
.match
$
.sub
kernel
10. defines an instance variable which only exists within the object it was created in.
@
.sort
.downcase
.downcase
11. method to determine if an object is an even number
method
D
.even?
.index
12. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
interpolation
library
.chop
kernel
13. the process of deciding which sections of code to execute based on conditions
if?then:else
array
flow control
.capitalize
14. passes value into block of code and assigns it the label of "x"
>=
arguments
|x|
.next
15. a string method that substitutes ALL occurrences of a string with another.
.include?()
A
hash
.gsub
16. array method that removes last item from an array
.capitalize
method
.pop
.map
17. used in an expression to manipulate objects
.split
$
operators
.index
18. a variable that lists the directories where Ruby will look for libraries
$:.
.gsub
object orientation
hash
19. array method that transforms the contents of an array according to a specified set of rules
.map
=>
ARGV
%w{}
20. (regular expression)anchor for the start of a string
.each
start_with?
A
array
21. passes value into block of code and assigns it the label of "x"
constant
|x|
A
?x
22. a string method that reverses capitalization
%arg
class
w
.swapcase
23. the remainder operator
%
A
constant
|x|
24. a string method that removes last character
.chop
hash
.scan()
parameters
25. an array method that returns TRUE or FALSE if the array contains specified item
.include?()
.chop
constant
.sort
26. symbol for a global variable which can be called from anywhere in an application.
.sub
.even?
<<
$
27. a string method that substitutes ALL occurrences of a string with another.
>=
.gsub
$
&&
28. pushes a new item onto the end of an array.
.methods
s
<<
D
29. (regular expression)any letter or digit or underscore
w
.pop
.map
string
30. a way to describe patterns in text
object orientation
library
regular expressions
.scan()
31. a string method that makes string all caps.
.include?()
flow control
#{}
.upcase
32. (regular expression)any non-whitespace character
^
.sub
S
interpolation
33. method that tells an argument's place value within an array
%
library
.index
||
34. Boolean not and or (lower preference)
@
array
not and or
arguments
35. a set of code within a class or object
|x|
.swapcase
.index
method
36. a string method that uncapitalizes first character
.downcase
Z
^
#{}
37. comparison operator for "equal to"
$
.sub
interpolation
==
38. 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.
.gsub
inheritance
.chop
code blocks
39. a string method that scans object for arguments - uses regular expressions.
.next
code blocks
.scan()
.gsub
40. tells ruby a value to pass while iterating a block of code
yield
iterator
integer
.each
41. returns ASCII value of x
.index
%w{}
.map
?x
42. array method that selects particular items from an array
if?then:else
.select
!=
d
43. array method that removes last item from an array
.pop
.sub
iterator
s
44. a definition of a concept in an object oriented language.
.between?
class
%arg
call
45. (regular expression)anchor for the end of a string
object orientation
.sub
Z
!=
46. a whole number
.match
integer
.split
#{}
47. returns ASCII value of x
object
.methods
end_with?
?x
48. (regular expression)any digit
struct
constant
s
d
49. a definition of a concept in an object oriented language.
end_with?
class
@@
struct
50. allows for classes to relate to each other in a hierarchy
.each
.match
inheritance
range