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 number with a decimal point such as 1.0 or 3.1
interpolation
.sub
float
.methods
2. defines a class variable. Can be used anywhere within a class
w
@@
.downcase
regular expressions
3. a string method that capitalizes first character
^
!=
.include?()
.capitalize
4. less than or equal to (comparison operator)
<=
%arg
.chop
!=
5. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
inheritance
float
<=>
w
6. a way to describe patterns in text
string
struct
S
regular expressions
7. variable that can be used only where it is defined within an application
variable
>=
local variable
!=
8. assigns a key to a hash value
=>
interpolation
.include?()
A
9. pushes a new item onto the end of an array.
.pop
d
<<
=>
10. method that tells if an argument is within the limits of two numbers
.split
.downcase
!=
.between?
11. an array method that returns TRUE or FALSE if the array contains specified item
regular expressions
.match
.include?()
W
12. tells you all methods that an object may invoke.
<<
.methods
S
#{}
13. method that tells if an argument is within the limits of two numbers
.index
.between?
.sub
.sort
14. array method that selects particular items from an array
.select
struct
inheritance
S
15. a string method that changes last character to next alphabetical character
.downcase
<<
.next
#{}
16. a regular method that is the anchor for the end of a line
!=
$
?x
operators
17. returns ASCII value of x
^
.pop
variable
?x
18. 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
end_with?
.include?()
A
19. greater than or equal to (comparison operator)
>=
D
.pop
!
20. a string method that capitalizes first character
.chop
.capitalize
code blocks
object
21. a placeholder for a single object that may be a number or string or list or instance of a defined class
.sort
.even?
variable
.even?
22. a regular method that is the anchor for the beggining of a line
^
.even?
.next
#{}
23. method that sorts items alphabetically
.sort
<=>
.select
integer
24. method to determine if an object is an even number
object orientation
Z
range
.even?
25. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
.each
constant
.select
.between?
26. string method that determines if a string ends with a defined string
==
.scan()
end_with?
%w{}
27. a string method that substituition. Requires 2 arguments.
.sub
code blocks
.split
.downcase
28. array method that removes last item from an array
.pop
object orientation
||
.downcase
29. tells you all methods that an object may invoke.
break if
.match
.methods
<<
30. (regular expression)any nondigit
regular expressions
w
D
flow control
31. (regular expression)any space or tab or newline or whitespace
.include?()
s
class
.each
32. sets a text delimiter
interpolation
%arg
W
s
33. tells ruby a value to pass while iterating a block of code
|x|
constant
yield
D
34. a whole number
%q
integer
start_with?
if?then:else
35. methods that step through lists element by element (like each or upto or times etc)
parameters
iterator
class
.between?
36. method to determine if an object is an even number
.even?
||
object
!
37. a string method that substitutes THE FIRST occurrence of a string within a string
.gsub
.sub
%
.match
38. passes value into block of code and assigns it the label of "x"
@
regular expressions
==
|x|
39. method that tells an argument's place value within an array
Z
.index
.include?()
.each
40. Boolean OR operator
.pop
&&
||
|x|
41. Boolean not and or (lower preference)
.index
end_with?
not and or
.scan()
42. an array method that
.each
%q
.map
.map
43. array method that transforms the contents of an array according to a specified set of rules
==
?x
.include?()
.map
44. a regular method that is the anchor for the beggining of a line
%q
.next
^
object orientation
45. (regular expression)any letter or digit or underscore
class
^
w
object orientation
46. operator for "Boolean not"
.sub
.even?
=>
!
47. (regular expression)any letter or digit or underscore
^
w
<<
.between?
48. a string method that removes last character
variable
hash
.chop
class
49. returns ASCII value of x
?x
library
==
!=
50. the remainder operator
!=
%
strip
operators