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 set of code within a class or object
.select
iterator
.sub
method
2. a string method that capitalizes first character
#{}
object orientation
method
.capitalize
3. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
code blocks
@@
constant
S
4. array method that selects particular items from an array
.select
$:.
w
#{}
5. variable that can be used only where it is defined within an application
<<
operators
local variable
struct
6. a placeholder for a single object that may be a number or string or list or instance of a defined class
.capitalize
variable
.include?()
^
7. a fixed value that begins with a capital letter such as Pi.
constant
.sub
.map
break if
8. sets a single character text delimiter for multi-line strings
%q
Z
constant
S
9. (regular expression)any nondigit
%
D
Z
.next
10. less than or equal to (comparison operator)
.methods
<=
w
@@
11. method that tells an argument's place value within an array
.pop
.map
ARGV
.index
12. passes value into block of code and assigns it the label of "x"
|x|
.gsub
S
.split
13. a regular method that is the anchor for the beggining of a line
^
#{}
object orientation
.sub
14. comparison operator for "equal to"
.next
<<
d
==
15. string method that determines if a string ends with a defined string
float
end_with?
class
library
16. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
%q
kernel
.each
%
17. a definition of a concept in an object oriented language.
class
^
variable
.include?()
18. a single instance of a class.
object
S
method
.upcase
19. the representation of data from a start to end point
S
range
D
.split
20. returns ASCII value of x
W
D
?x
.map
21. an array method that returns TRUE or FALSE if the array contains specified item
.include?()
range
%w{}
?x
22. a collection of characters such as "Hello world!"
^
string
float
!
23. a collection of objects or values with associated keys
hash
.each
start_with?
.select
24. method that sorts items alphabetically
.sort
A
call
||
25. symbol for a global variable which can be called from anywhere in an application.
.pop
.map
$
.select
26. a string method that uncapitalizes first character
break if
@@
.downcase
string
27. interpolation operator
string
#{}
.index
|x|
28. an array method that
library
.each
|x|
strip
29. (regular expression)any nonletter or nondigit or nonunderscore.
hash
.capitalize
W
end_with?
30. a string method that substitutes THE FIRST occurrence of a string within a string
.even?
.gsub
.each
.sub
31. a special class that holds attributes and data but no methods.
struct
constant
range
A
32. Boolean AND operator
&&
W
struct
.methods
33. class inheritance operator.
.upcase
d
<
iterator
34. (regular expression)any space or tab or newline or whitespace
constant
.between?
s
W
35. a collection of objects with a defined order
float
W
!
array
36. (regular expression)any letter or digit or underscore
.index
.capitalize
object orientation
w
37. data passed to methods in parenthesis after a method's name.
.between?
parameters
call
class
38. an array method that
call
.each
flow control
.swapcase
39. interpolation operator
.methods
constant
#{}
.even?
40. a special array made from arguments that were added to the command line at start up.
if?then:else
#{}
.even?
ARGV
41. operator for "Boolean not"
Z
local variable
constant
!
42. an array method that returns TRUE or FALSE if the array contains specified item
.include?()
!=
local variable
<
43. a regular method that is the anchor for the beggining of a line
S
.each
<=>
^
44. defines array of multiple elements seperated by a space
array
.scan()
regular expressions
%w{}
45. a regular method that is the anchor for the end of a line
struct
$
kernel
if?then:else
46. 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.
code blocks
class
local variable
?x
47. (regular expression)anchor for the start of a string
@@
.capitalize
.map
A
48. a string method that removes last character
integer
class
&&
.chop
49. a number with a decimal point such as 1.0 or 3.1
float
@
>=
class
50. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
library
local variable
.scan()
<=>