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 string method that changes last character to next alphabetical character
operators
object orientation
.methods
.next
2. allows for classes to relate to each other in a hierarchy
A
float
w
inheritance
3. operator for "Boolean not"
local variable
.next
.capitalize
!
4. interpolation operator
W
#{}
<<
.capitalize
5. a string method that substituition. Requires 2 arguments.
string
.sub
$:.
.pop
6. (regular expression)any nonletter or nondigit or nonunderscore.
W
kernel
.split
s
7. class inheritance operator.
constant
<
.methods
Z
8. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
W
constant
inheritance
operators
9. a regular method that is the anchor for the beggining of a line
.each
.scan()
.chop
^
10. symbol for a global variable which can be called from anywhere in an application.
.swapcase
&&
A
$
11. a number with a decimal point such as 1.0 or 3.1
%
class
float
object
12. array method that removes last item from an array
w
constant
.each
.pop
13. a special class that holds attributes and data but no methods.
%w{}
struct
.methods
^
14. passes value into block of code and assigns it the label of "x"
code blocks
string
|x|
<=>
15. 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
.match
.upcase
integer
.between?
16. a module of classes and or functions
#{}
<<
library
call
17. a definition of a concept in an object oriented language.
end_with?
?x
Z
class
18. a placeholder for a single object that may be a number or string or list or instance of a defined class
variable
break if
.scan()
Z
19. defines array of multiple elements seperated by a space
if?then:else
Z
local variable
%w{}
20. defines a class variable. Can be used anywhere within a class
iterator
method
@@
.each
21. a string method that removes last character
.chop
$
library
.between?
22. array method that transforms the contents of an array according to a specified set of rules
.upcase
.map
integer
#{}
23. (regular expression)anchor for the start of a string
.select
interpolation
A
Z
24. a special array made from arguments that were added to the command line at start up.
ARGV
.downcase
class
.between?
25. (regular expression)anchor for the end of a string
A
constant
Z
object
26. a string method that scans object for arguments - uses regular expressions.
hash
|x|
.scan()
string
27. (regular expression)any letter or digit or underscore
%q
w
d
<
28. sets a single character text delimiter for multi-line strings
%q
.map
.even?
D
29. 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.
S
=>
.gsub
code blocks
30. the remainder operator
||
variable
%
.downcase
31. a set of code within a class or object
.capitalize
.each
<
method
32. Boolean OR operator
local variable
library
^
||
33. array method that transforms the contents of an array according to a specified set of rules
.map
.index
#{}
.select
34. a way to describe patterns in text
kernel
local variable
break if
regular expressions
35. interpolation operator
array
.scan()
#{}
string
36. comparison operator for "not equal to"
local variable
!=
if?then:else
.pop
37. operator for "Boolean not"
D
code blocks
>=
!
38. array method that removes last item from an array
.pop
A
.each
constant
39. runs a proc that has been stored to a variable
constant
.between?
^
call
40. a collection of objects or values with associated keys
.scan()
hash
.chop
s
41. method that tells an argument's place value within an array
.each
range
.map
.index
42. the process of deciding which sections of code to execute based on conditions
.match
flow control
?x
.methods
43. Boolean AND operator
S
&&
kernel
arguments
44. (regular expression)any space or tab or newline or whitespace
s
w
.capitalize
object orientation
45. method that tells if an argument is within the limits of two numbers
$
call
interpolation
.between?
46. an array method that returns TRUE or FALSE if the array contains specified item
.include?()
regular expressions
%
.sort
47. a whole number
integer
#{}
method
kernel
48. method that sorts items alphabetically
?x
.scan()
.sort
string
49. a string method that substitutes THE FIRST occurrence of a string within a string
.sort
.sub
iterator
%
50. sets a text delimiter
%arg
code blocks
s
.sub