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. (regular expression)any non-whitespace character
.include?()
d
method
S
2. comparison operator for "equal to"
ARGV
==
.each
.split
3. (regular expression)anchor for the end of a string
inheritance
.downcase
.split
Z
4. tells you all methods that an object may invoke.
?x
method
.methods
<
5. operator for "Boolean not"
#{}
end_with?
!
A
6. comparison operator for "not equal to"
end_with?
<=>
!=
<<
7. a string method that splits a string into an array
.chop
.split
not and or
.between?
8. (regular expression)any space or tab or newline or whitespace
.scan()
library
.capitalize
s
9. a string method that substituition. Requires 2 arguments.
Z
.sub
.index
^
10. conditionally stops a loop
break if
.gsub
library
.select
11. array method that removes last item from an array
.pop
struct
.include?()
class
12. using classes and objects to make real-world concepts in programming.
.pop
call
object orientation
object
13. defines an instance variable which only exists within the object it was created in.
@
.map
integer
.index
14. a regular method that is the anchor for the beggining of a line
@
.next
^
.map
15. allows for classes to relate to each other in a hierarchy
|x|
<<
struct
inheritance
16. (regular expression)anchor for the end of a string
&&
A
Z
.scan()
17. a string method that uncapitalizes first character
&&
S
.downcase
.capitalize
18. data passed to methods in parenthesis after a method's name.
?x
parameters
%
.between?
19. passes value into block of code and assigns it the label of "x"
flow control
|x|
operators
<<
20. (regular expression)any nonletter or nondigit or nonunderscore.
.include?()
.gsub
!
W
21. defines array of multiple elements seperated by a space
#{}
d
.capitalize
%w{}
22. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
D
.scan()
method
kernel
23. methods that step through lists element by element (like each or upto or times etc)
!=
<=>
iterator
.split
24. (regular expression)any nondigit
.even?
not and or
.each
D
25. array method that transforms the contents of an array according to a specified set of rules
=>
object orientation
@
.map
26. Boolean not and or (lower preference)
<<
not and or
.pop
.between?
27. method that tells an argument's place value within an array
.gsub
.index
<<
kernel
28. an array method that
object orientation
.each
%w{}
@
29. string method that determines if a string starts with a defined string
.include?()
@@
.sort
start_with?
30. operator for "Boolean not"
.index
^
$
!
31. returns ASCII value of x
S
?x
method
A
32. a string method that substitutes THE FIRST occurrence of a string within a string
.capitalize
#{}
.sub
.sort
33. (regular expression)any digit
d
.next
operators
.between?
34. a collection of objects with a defined order
!=
||
w
array
35. a special array made from arguments that were added to the command line at start up.
ARGV
iterator
!
end_with?
36. interpolation operator
.methods
.next
.pop
#{}
37. a string method that substitutes ALL occurrences of a string with another.
<=
.gsub
class
#{}
38. variable that can be used only where it is defined within an application
&&
.downcase
local variable
?x
39. less than or equal to (comparison operator)
.select
.chop
<=
if?then:else
40. (regular expression)any space or tab or newline or whitespace
kernel
s
|x|
.swapcase
41. a module of classes and or functions
<<
d
library
%
42. sets a single character text delimiter for multi-line strings
object
%q
S
<=
43. (regular expression)any letter or digit or underscore
.each
w
constant
!
44. greater than or equal to (comparison operator)
<<
>=
.gsub
integer
45. a regular method that is the anchor for the end of a line
!=
.upcase
$
%q
46. 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.
w
.downcase
code blocks
library
47. class inheritance operator.
D
inheritance
call
<
48. runs a proc that has been stored to a variable
^
W
call
.map
49. a string method that changes last character to next alphabetical character
.between?
Z
object orientation
.next
50. string method that "cleans" extra spaces from strings
end_with?
integer
call
strip