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. operator for "Boolean not"
.gsub
iterator
d
!
2. a regular method that is the anchor for the end of a line
$
inheritance
call
operators
3. runs a proc that has been stored to a variable
call
.capitalize
s
<
4. comparison operator for "equal to"
==
range
.map
.sub
5. the process of deciding which sections of code to execute based on conditions
flow control
.select
object
#{}
6. passes value into block of code and assigns it the label of "x"
.pop
local variable
|x|
array
7. array method that transforms the contents of an array according to a specified set of rules
.next
W
.map
D
8. a special class that holds attributes and data but no methods.
if?then:else
strip
&&
struct
9. a regular method that is the anchor for the beggining of a line
.sub
^
string
.map
10. using classes and objects to make real-world concepts in programming.
object orientation
array
.include?()
!=
11. 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
constant
.chop
.match
.sub
12. a string method that scans object for arguments - uses regular expressions.
hash
array
W
.scan()
13. array assignment oprator
<<
s
.match
variable
14. a definition of a concept in an object oriented language.
class
|x|
.methods
yield
15. returns ASCII value of x
.index
.methods
constant
?x
16. a special array made from arguments that were added to the command line at start up.
ARGV
constant
.pop
.capitalize
17. a string method that substitutes ALL occurrences of a string with another.
class
.gsub
!
.even?
18. (regular expression)any letter or digit or underscore
.map
w
if?then:else
.downcase
19. method that tells an argument's place value within an array
?x
.index
object
@
20. (regular expression)any digit
d
kernel
.chop
?x
21. array method that removes last item from an array
.sub
yield
.pop
.include?()
22. data passed to methods in parenthesis after a method's name.
W
^
.each
parameters
23. array method that removes last item from an array
.pop
<<
.downcase
<=>
24. mixing expressions into strings
.between?
.between?
.upcase
interpolation
25. assigns a key to a hash value
=>
.chop
!
not and or
26. a fixed value that begins with a capital letter such as Pi.
?x
.capitalize
.select
constant
27. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
kernel
.methods
.swapcase
W
28. returns ASCII value of x
object
integer
?x
A
29. (regular expression)any space or tab or newline or whitespace
s
<=
|x|
!
30. comparison operator for "not equal to"
!=
<<
D
not and or
31. a string method that removes last character
.include?()
<<
class
.chop
32. a string method that changes last character to next alphabetical character
.scan()
W
D
.next
33. a set of code within a class or object
object orientation
method
.swapcase
.capitalize
34. a string method that reverses capitalization
%arg
struct
.each
.swapcase
35. (regular expression)any non-whitespace character
.chop
.gsub
S
^
36. a regular method that is the anchor for the beggining of a line
>=
.capitalize
|x|
^
37. a placeholder for a single object that may be a number or string or list or instance of a defined class
variable
inheritance
.chop
d
38. a whole number
call
flow control
integer
W
39. a way to describe patterns in text
<=
regular expressions
W
.upcase
40. array method that selects particular items from an array
w
.select
range
.gsub
41. a collection of objects or values with associated keys
.downcase
array
#{}
hash
42. (regular expression)anchor for the start of a string
s
.downcase
struct
A
43. a string method that changes last character to next alphabetical character
.capitalize
.next
struct
%w{}
44. (regular expression)anchor for the end of a string
A
yield
Z
?x
45. (regular expression)any nondigit
array
.methods
?x
D
46. a string method that splits a string into an array
end_with?
.between?
.split
flow control
47. operator for "Boolean not"
.pop
^
!
.even?
48. defines an instance variable which only exists within the object it was created in.
.even?
||
@
==
49. a variable that lists the directories where Ruby will look for libraries
method
.include?()
$:.
.gsub
50. method that tells if an argument is within the limits of two numbers
.between?
yield
start_with?
float