SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
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. used in an expression to manipulate objects
operators
%arg
<<
.capitalize
2. (regular expression)anchor for the start of a string
%q
Z
A
parameters
3. array method that transforms the contents of an array according to a specified set of rules
A
%w{}
.include?()
.map
4. defines an instance variable which only exists within the object it was created in.
D
@
<=
@@
5. a module of classes and or functions
library
d
.methods
.sort
6. a regular method that is the anchor for the end of a line
$
Z
D
#{}
7. a number with a decimal point such as 1.0 or 3.1
.each
S
.between?
float
8. a string method that substitutes ALL occurrences of a string with another.
.capitalize
.gsub
.pop
.between?
9. returns ASCII value of x
interpolation
D
S
?x
10. array method that selects particular items from an array
.select
.chop
string
?x
11. defines a class variable. Can be used anywhere within a class
^
.select
@@
#{}
12. string method that "cleans" extra spaces from strings
.capitalize
w
.next
strip
13. tells you all methods that an object may invoke.
.methods
.swapcase
==
S
14. a string method that changes last character to next alphabetical character
@@
%
.next
method
15. (regular expression)any non-whitespace character
.capitalize
S
string
@
16. string method that determines if a string ends with a defined string
D
end_with?
.capitalize
iterator
17. operator for "Boolean not"
s
<=
!
Z
18. (regular expression)any space or tab or newline or whitespace
s
!
float
w
19. array assignment oprator
.chop
<<
@
method
20. (regular expression)any digit
d
.downcase
.methods
ARGV
21. sets a text delimiter
%w{}
.include?()
S
%arg
22. the ternary operator if?then:else
if?then:else
?x
.pop
W
23. (regular expression)any nondigit
.pop
.pop
D
method
24. (regular expression)any space or tab or newline or whitespace
s
.select
operators
object orientation
25. a string method that uncapitalizes first character
.methods
.sort
.downcase
.include?()
26. a single instance of a class.
.pop
d
object
%q
27. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
regular expressions
kernel
.map
.chop
28. a string method that reverses capitalization
flow control
.swapcase
local variable
.next
29. a string method that scans object for arguments - uses regular expressions.
.scan()
<=
regular expressions
flow control
30. a special array made from arguments that were added to the command line at start up.
array
ARGV
$
.gsub
31. methods that step through lists element by element (like each or upto or times etc)
.pop
iterator
.each
code blocks
32. 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.
?x
.between?
code blocks
.scan()
33. a collection of objects with a defined order
$:.
array
yield
start_with?
34. interpolation operator
end_with?
#{}
.swapcase
d
35. Boolean not and or (lower preference)
.downcase
not and or
parameters
Z
36. a collection of characters such as "Hello world!"
interpolation
w
arguments
string
37. (regular expression)anchor for the end of a string
Z
#{}
<<
arguments
38. (regular expression)anchor for the end of a string
.scan()
Z
.chop
S
39. runs a proc that has been stored to a variable
code blocks
?x
class
call
40. greater than or equal to (comparison operator)
$
>=
^
string
41. using classes and objects to make real-world concepts in programming.
.index
@
object orientation
.include?()
42. a placeholder for a single object that may be a number or string or list or instance of a defined class
variable
kernel
%w{}
?x
43. method to determine if an object is an even number
.even?
.downcase
operators
flow control
44. a definition of a concept in an object oriented language.
$
class
.scan()
regular expressions
45. method that tells an argument's place value within an array
.methods
.index
arguments
W
46. a way to describe patterns in text
.between?
.downcase
regular expressions
|x|
47. array method that transforms the contents of an array according to a specified set of rules
struct
#{}
.map
@
48. (regular expression)any nonletter or nondigit or nonunderscore.
.map
end_with?
W
$
49. a set of code within a class or object
regular expressions
W
Z
method
50. an array method that
A
flow control
|x|
.each