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. method that tells an argument's place value within an array
.include?()
<=
.even?
.index
2. array method that transforms the contents of an array according to a specified set of rules
.map
!
.select
parameters
3. Boolean not and or (lower preference)
end_with?
object orientation
not and or
d
4. the ternary operator if?then:else
<<
.each
if?then:else
$
5. data passed to methods in parenthesis after a method's name.
Z
||
arguments
!=
6. methods that step through lists element by element (like each or upto or times etc)
kernel
^
.capitalize
iterator
7. tells ruby a value to pass while iterating a block of code
yield
.capitalize
<=>
?x
8. tells you all methods that an object may invoke.
.sort
constant
.methods
$
9. a way to describe patterns in text
regular expressions
float
@
.even?
10. method that tells an argument's place value within an array
.index
inheritance
.scan()
.between?
11. method that sorts items alphabetically
class
constant
.sort
?x
12. array method that selects particular items from an array
.select
&&
.pop
w
13. symbol for a global variable which can be called from anywhere in an application.
.scan()
$
.between?
.split
14. 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
.match
object orientation
#{}
variable
15. a regular method that is the anchor for the beggining of a line
.even?
call
.sub
^
16. string method that determines if a string starts with a defined string
.scan()
.next
range
start_with?
17. array assignment oprator
<<
.pop
.methods
method
18. an array method that
.between?
.each
ARGV
<<
19. returns ASCII value of x
.include?()
?x
library
yield
20. array method that transforms the contents of an array according to a specified set of rules
<
parameters
.map
>=
21. interpolation operator
W
.scan()
=>
#{}
22. a string method that splits a string into an array
object
class
.split
arguments
23. data passed to methods in parenthesis after a method's name.
w
parameters
.include?()
flow control
24. the remainder operator
%
method
.map
%w{}
25. a string method that scans object for arguments - uses regular expressions.
.map
.scan()
#{}
.select
26. (regular expression)any letter or digit or underscore
.each
s
w
@
27. (regular expression)any digit
^
d
.between?
method
28. Boolean AND operator
^
&&
W
struct
29. runs a proc that has been stored to a variable
==
<=
call
.even?
30. (regular expression)anchor for the end of a string
Z
if?then:else
D
call
31. a string method that substitutes ALL occurrences of a string with another.
.gsub
d
.even?
%q
32. a single instance of a class.
W
method
object
%q
33. less than or equal to (comparison operator)
<=
array
flow control
S
34. a string method that changes last character to next alphabetical character
^
.next
range
%w{}
35. a variable that lists the directories where Ruby will look for libraries
.downcase
object orientation
$:.
w
36. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
?x
kernel
|x|
w
37. a collection of objects with a defined order
integer
.next
if?then:else
array
38. passes value into block of code and assigns it the label of "x"
|x|
regular expressions
>=
.gsub
39. allows for classes to relate to each other in a hierarchy
.sort
.swapcase
?x
inheritance
40. operator for "Boolean not"
.gsub
library
.even?
!
41. defines array of multiple elements seperated by a space
!
float
%w{}
object orientation
42. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
<<
.next
<=>
array
43. a string method that removes last character
!=
string
.chop
variable
44. a fixed value that begins with a capital letter such as Pi.
!
!=
W
constant
45. Boolean OR operator
||
A
.methods
@@
46. a special class that holds attributes and data but no methods.
.next
$:.
not and or
struct
47. sets a single character text delimiter for multi-line strings
.capitalize
.gsub
.map
%q
48. a string method that makes string all caps.
.methods
.map
array
.upcase
49. a string method that reverses capitalization
.next
.sub
.swapcase
A
50. operator for "Boolean not"
!
iterator
.select
%