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.
.between?
==
constant
.even?
2. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
.upcase
.swapcase
struct
<=>
3. a regular method that is the anchor for the beggining of a line
class
.sub
@
^
4. (regular expression)any space or tab or newline or whitespace
constant
.index
|x|
s
5. pushes a new item onto the end of an array.
<=>
.sub
method
<<
6. method to determine if an object is an even number
not and or
%w{}
.even?
.capitalize
7. method that tells if an argument is within the limits of two numbers
range
s
S
.between?
8. a string method that substitutes ALL occurrences of a string with another.
.next
!
.gsub
<<
9. a string method that substitutes THE FIRST occurrence of a string within a string
.sub
A
#{}
.pop
10. (regular expression)any digit
string
.index
d
<
11. interpolation operator
.downcase
library
<<
#{}
12. Boolean OR operator
||
.next
.split
w
13. returns ASCII value of x
?x
D
.sort
.index
14. (regular expression)anchor for the end of a string
.map
.next
Z
code blocks
15. sets a text delimiter
.chop
ARGV
%arg
.index
16. string method that determines if a string starts with a defined string
W
.index
.chop
start_with?
17. method that sorts items alphabetically
<
strip
constant
.sort
18. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
kernel
iterator
$
.between?
19. array method that selects particular items from an array
.sub
S
.select
$:.
20. comparison operator for "equal to"
code blocks
.next
<<
==
21. a string method that removes last character
call
|x|
.include?()
.chop
22. method to determine if an object is an even number
.even?
.index
object
library
23. a string method that substituition. Requires 2 arguments.
==
.sub
S
S
24. comparison operator for "not equal to"
not and or
!=
.even?
.downcase
25. (regular expression)any non-whitespace character
.match
<<
S
^
26. a string method that scans object for arguments - uses regular expressions.
@@
%arg
constant
.scan()
27. array method that transforms the contents of an array according to a specified set of rules
constant
<<
integer
.map
28. string method that determines if a string ends with a defined string
end_with?
>=
.pop
.capitalize
29. (regular expression)anchor for the start of a string
A
.each
D
W
30. a single instance of a class.
object
.include?()
.swapcase
break if
31. the process of deciding which sections of code to execute based on conditions
!
S
flow control
Z
32. a collection of objects with a defined order
%w{}
array
#{}
d
33. a collection of objects or values with associated keys
hash
^
W
library
34. allows for classes to relate to each other in a hierarchy
?x
=>
inheritance
array
35. array method that removes last item from an array
.sub
.pop
call
.methods
36. class inheritance operator.
code blocks
=>
<
.include?()
37. a definition of a concept in an object oriented language.
.sub
$:.
class
^
38. (regular expression)any nonletter or nondigit or nonunderscore.
hash
W
%
!=
39. passes value into block of code and assigns it the label of "x"
class
start_with?
|x|
=>
40. a string method that splits a string into an array
|x|
.split
parameters
s
41. the remainder operator
<<
method
%
class
42. (regular expression)any letter or digit or underscore
w
.scan()
$
.sub
43. mixing expressions into strings
interpolation
strip
.pop
S
44. returns ASCII value of x
parameters
?x
method
$:.
45. Boolean AND operator
&&
float
.methods
string
46. operator for "Boolean not"
$:.
!
code blocks
class
47. 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
yield
kernel
.match
>=
48. a number with a decimal point such as 1.0 or 3.1
start_with?
class
float
method
49. comparison operator for "not equal to"
class
s
!=
.select
50. a set of code within a class or object
||
%q
method
#{}