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. using classes and objects to make real-world concepts in programming.
w
object orientation
s
float
2. defines a class variable. Can be used anywhere within a class
@@
#{}
.match
not and or
3. runs a proc that has been stored to a variable
call
arguments
<
interpolation
4. sets a single character text delimiter for multi-line strings
.index
.gsub
%q
.sub
5. string method that determines if a string starts with a defined string
start_with?
<=
?x
.next
6. string method that "cleans" extra spaces from strings
?x
.sub
S
strip
7. used in an expression to manipulate objects
||
$
D
operators
8. an array method that
code blocks
!
.each
range
9. a module of classes and or functions
.sort
library
|x|
>=
10. operator for "Boolean not"
.between?
!
arguments
.gsub
11. comparison operator for "not equal to"
!=
#{}
.chop
.capitalize
12. a definition of a concept in an object oriented language.
.downcase
class
S
S
13. interpolation operator
$:.
#{}
W
<=
14. a whole number
@@
#{}
.even?
integer
15. method that tells an argument's place value within an array
.match
end_with?
.index
.upcase
16. (regular expression)any letter or digit or underscore
w
operators
.between?
.chop
17. a definition of a concept in an object oriented language.
ARGV
.each
class
object
18. a collection of objects with a defined order
<<
start_with?
array
range
19. greater than or equal to (comparison operator)
%w{}
>=
.even?
$:.
20. (regular expression)any space or tab or newline or whitespace
string
s
$
.index
21. data passed to methods in parenthesis after a method's name.
arguments
s
code blocks
.downcase
22. (regular expression)any digit
d
#{}
%w{}
string
23. a regular method that is the anchor for the end of a line
$
hash
||
<=>
24. pushes a new item onto the end of an array.
.even?
class
.gsub
<<
25. the process of deciding which sections of code to execute based on conditions
flow control
@@
arguments
.select
26. array method that selects particular items from an array
array
.select
&&
.methods
27. a string method that scans object for arguments - uses regular expressions.
.select
.scan()
w
.gsub
28. (regular expression)anchor for the start of a string
>=
variable
.scan()
A
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.
code blocks
.gsub
.sub
call
30. (regular expression)any letter or digit or underscore
flow control
<<
w
|x|
31. symbol for a global variable which can be called from anywhere in an application.
.next
.sub
$
ARGV
32. data passed to methods in parenthesis after a method's name.
Z
parameters
.index
||
33. assigns a key to a hash value
if?then:else
^
=>
A
34. tells you all methods that an object may invoke.
||
.methods
end_with?
w
35. Boolean not and or (lower preference)
S
d
not and or
variable
36. a string method that changes last character to next alphabetical character
D
&&
array
.next
37. Boolean AND operator
s
constant
&&
struct
38. a string method that removes last character
.map
?x
.chop
.sub
39. a number with a decimal point such as 1.0 or 3.1
!=
@
float
s
40. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
kernel
S
class
.include?()
41. allows for classes to relate to each other in a hierarchy
$
inheritance
.split
constant
42. array method that transforms the contents of an array according to a specified set of rules
.map
^
>=
.next
43. (regular expression)any nondigit
.chop
D
.gsub
iterator
44. a special array made from arguments that were added to the command line at start up.
.methods
S
w
ARGV
45. a string method that makes string all caps.
variable
class
.upcase
.methods
46. (regular expression)any non-whitespace character
.scan()
<<
S
.sub
47. a single instance of a class.
object
d
if?then:else
.gsub
48. a string method that removes last character
S
d
$
.chop
49. 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
.include?()
.match
A
W
50. Boolean OR operator
%q
ARGV
regular expressions
||