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 special class that holds attributes and data but no methods.
if?then:else
A
.between?
struct
2. runs a proc that has been stored to a variable
!=
call
A
.methods
3. a string method that changes last character to next alphabetical character
.next
#{}
.downcase
.chop
4. comparison operator for "not equal to"
range
.even?
!=
#{}
5. (regular expression)anchor for the start of a string
method
A
.chop
.split
6. method that tells an argument's place value within an array
!
yield
.index
==
7. string method that "cleans" extra spaces from strings
%arg
strip
.capitalize
<=
8. a collection of objects with a defined order
.each
array
flow control
.next
9. an array method that
start_with?
.chop
constant
.each
10. defines a class variable. Can be used anywhere within a class
struct
$:.
.chop
@@
11. array method that removes last item from an array
<<
strip
iterator
.pop
12. (regular expression)anchor for the end of a string
d
.next
%
Z
13. a number with a decimal point such as 1.0 or 3.1
library
float
%arg
object
14. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
.chop
kernel
^
@@
15. using classes and objects to make real-world concepts in programming.
object orientation
operators
.index
.swapcase
16. a way to describe patterns in text
.sub
strip
regular expressions
S
17. data passed to methods in parenthesis after a method's name.
#{}
parameters
yield
.scan()
18. a collection of objects or values with associated keys
hash
Z
.even?
s
19. (regular expression)anchor for the start of a string
integer
$
.include?()
A
20. (regular expression)any letter or digit or underscore
!=
.gsub
w
.select
21. tells you all methods that an object may invoke.
.pop
|x|
.methods
if?then:else
22. conditionally stops a loop
yield
not and or
.pop
break if
23. string method that determines if a string ends with a defined string
.even?
w
A
end_with?
24. class inheritance operator.
code blocks
<
^
constant
25. sets a single character text delimiter for multi-line strings
!=
!=
strip
%q
26. (regular expression)any non-whitespace character
.select
<<
range
S
27. comparison operator for "equal to"
.chop
.swapcase
==
<<
28. symbol for a global variable which can be called from anywhere in an application.
.capitalize
$
.chop
.downcase
29. array method that transforms the contents of an array according to a specified set of rules
s
!=
.split
.map
30. returns ASCII value of x
.sub
kernel
regular expressions
?x
31. method that tells if an argument is within the limits of two numbers
.sub
code blocks
.between?
<<
32. 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
yield
.scan()
.next
33. a string method that splits a string into an array
&&
strip
class
.split
34. a fixed value that begins with a capital letter such as Pi.
constant
=>
^
interpolation
35. passes value into block of code and assigns it the label of "x"
Z
code blocks
|x|
.select
36. interpolation operator
#{}
!
constant
array
37. a string method that substitutes THE FIRST occurrence of a string within a string
.sub
.even?
kernel
#{}
38. method that tells if an argument is within the limits of two numbers
flow control
.between?
method
.pop
39. (regular expression)any non-whitespace character
S
@
.index
.next
40. array method that transforms the contents of an array according to a specified set of rules
%
w
.map
<<
41. passes value into block of code and assigns it the label of "x"
|x|
.between?
@
S
42. an array method that returns TRUE or FALSE if the array contains specified item
array
struct
.include?()
s
43. a string method that substitutes ALL occurrences of a string with another.
.downcase
.gsub
interpolation
d
44. a string method that uncapitalizes first character
@@
.capitalize
.downcase
kernel
45. comparison operator for "not equal to"
||
.scan()
!=
<<
46. sets a text delimiter
%arg
constant
struct
%
47. a regular method that is the anchor for the beggining of a line
.even?
.gsub
^
.each
48. assigns a key to a hash value
array
=>
d
local variable
49. (regular expression)any space or tab or newline or whitespace
interpolation
hash
.methods
s
50. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
<=>
.chop
code blocks
constant