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 nondigit
.swapcase
||
D
variable
2. a way to describe patterns in text
regular expressions
.swapcase
ARGV
string
3. a string method that changes last character to next alphabetical character
.gsub
.next
.downcase
W
4. comparison operator for "not equal to"
d
.include?()
!=
kernel
5. a string method that substitutes ALL occurrences of a string with another.
constant
regular expressions
.gsub
S
6. interpolation operator
W
S
#{}
==
7. conditionally stops a loop
@
break if
.methods
string
8. tells you all methods that an object may invoke.
!=
.methods
%
<=
9. array method that transforms the contents of an array according to a specified set of rules
struct
s
variable
.map
10. less than or equal to (comparison operator)
.next
S
W
<=
11. an array method that
.chop
.each
!=
.downcase
12. a special array made from arguments that were added to the command line at start up.
.between?
yield
ARGV
.methods
13. data passed to methods in parenthesis after a method's name.
.include?()
.next
constant
parameters
14. (regular expression)any digit
|x|
string
#{}
d
15. array method that removes last item from an array
Z
.methods
.pop
.downcase
16. (regular expression)any nonletter or nondigit or nonunderscore.
.downcase
class
ARGV
W
17. a string method that changes last character to next alphabetical character
&&
.sub
.next
@@
18. method that sorts items alphabetically
.upcase
inheritance
?x
.sort
19. operator for "Boolean not"
!
local variable
w
end_with?
20. a number with a decimal point such as 1.0 or 3.1
float
string
constant
.even?
21. a string method that capitalizes first character
%w{}
local variable
.capitalize
.downcase
22. defines an instance variable which only exists within the object it was created in.
<<
@
w
<=>
23. data passed to methods in parenthesis after a method's name.
%w{}
.sub
.sub
arguments
24. a string method that splits a string into an array
.each
yield
^
.split
25. (regular expression)any non-whitespace character
#{}
S
||
code blocks
26. the ternary operator if?then:else
%
<<
if?then:else
%arg
27. tells ruby a value to pass while iterating a block of code
.gsub
$:.
yield
s
28. defines a class variable. Can be used anywhere within a class
.scan()
@@
<<
start_with?
29. assigns a key to a hash value
inheritance
object orientation
interpolation
=>
30. (regular expression)anchor for the end of a string
.each
Z
==
break if
31. Boolean AND operator
&&
array
<<
.pop
32. tells you all methods that an object may invoke.
yield
.methods
w
D
33. symbol for a global variable which can be called from anywhere in an application.
code blocks
.downcase
.scan()
$
34. passes value into block of code and assigns it the label of "x"
struct
|x|
integer
%
35. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
W
object orientation
kernel
.scan()
36. string method that "cleans" extra spaces from strings
==
<<
.next
strip
37. a collection of characters such as "Hello world!"
string
struct
!
w
38. allows for classes to relate to each other in a hierarchy
inheritance
.each
.include?()
.include?()
39. class inheritance operator.
!
object orientation
.scan()
<
40. array assignment oprator
start_with?
W
<<
|x|
41. a regular method that is the anchor for the beggining of a line
$
^
Z
!=
42. defines array of multiple elements seperated by a space
||
library
%w{}
!
43. passes value into block of code and assigns it the label of "x"
.scan()
$
local variable
|x|
44. operator for "Boolean not"
D
struct
.methods
!
45. sets a single character text delimiter for multi-line strings
.index
regular expressions
d
%q
46. a string method that reverses capitalization
<<
.include?()
method
.swapcase
47. (regular expression)any letter or digit or underscore
inheritance
w
interpolation
==
48. (regular expression)anchor for the end of a string
ARGV
Z
|x|
iterator
49. a string method that uncapitalizes first character
.downcase
.map
.sort
variable
50. runs a proc that has been stored to a variable
float
.gsub
call
S