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. the ternary operator if?then:else
.capitalize
A
if?then:else
operators
2. method that tells an argument's place value within an array
D
not and or
.gsub
.index
3. string method that determines if a string ends with a defined string
end_with?
integer
code blocks
.split
4. an array method that returns TRUE or FALSE if the array contains specified item
.include?()
>=
A
array
5. runs a proc that has been stored to a variable
call
.pop
flow control
w
6. a definition of a concept in an object oriented language.
.capitalize
regular expressions
class
<<
7. data passed to methods in parenthesis after a method's name.
iterator
constant
arguments
==
8. (regular expression)anchor for the start of a string
^
operators
A
integer
9. tells ruby a value to pass while iterating a block of code
arguments
yield
.select
.chop
10. a string method that capitalizes first character
break if
W
.even?
.capitalize
11. sets a single character text delimiter for multi-line strings
%q
&&
.split
<<
12. a string method that reverses capitalization
.swapcase
.even?
.next
@@
13. a way to describe patterns in text
.chop
regular expressions
object orientation
.map
14. a variable that lists the directories where Ruby will look for libraries
$:.
<<
&&
not and or
15. (regular expression)any non-whitespace character
S
.index
string
A
16. (regular expression)any digit
d
variable
.methods
ARGV
17. (regular expression)anchor for the start of a string
S
Z
.select
A
18. a string method that substitutes THE FIRST occurrence of a string within a string
<=
.sub
$
method
19. a string method that scans object for arguments - uses regular expressions.
.scan()
.each
.include?()
&&
20. comparison operator for "not equal to"
.between?
W
!=
float
21. a string method that capitalizes first character
.match
d
.between?
.capitalize
22. a regular method that is the anchor for the beggining of a line
not and or
^
.downcase
d
23. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
<=>
.upcase
flow control
.include?()
24. a set of code within a class or object
w
method
.even?
||
25. conditionally stops a loop
@@
<=>
break if
?x
26. array method that removes last item from an array
library
<<
.pop
.scan()
27. comparison operator for "not equal to"
s
constant
.next
!=
28. a fixed value that begins with a capital letter such as Pi.
constant
.each
flow control
.include?()
29. a string method that substituition. Requires 2 arguments.
.sub
!=
operators
library
30. (regular expression)any nonletter or nondigit or nonunderscore.
@
^
.pop
W
31. symbol for a global variable which can be called from anywhere in an application.
s
$
%
library
32. a string method that uncapitalizes first character
.capitalize
.downcase
.capitalize
.sort
33. methods that step through lists element by element (like each or upto or times etc)
D
.methods
iterator
.downcase
34. defines an instance variable which only exists within the object it was created in.
.index
@
method
#{}
35. array method that transforms the contents of an array according to a specified set of rules
^
<<
.map
.sub
36. 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
operators
.match
end_with?
class
37. a string method that scans object for arguments - uses regular expressions.
integer
|x|
.gsub
.scan()
38. Boolean AND operator
&&
Z
kernel
%
39. mixing expressions into strings
?x
interpolation
S
.downcase
40. method that tells if an argument is within the limits of two numbers
string
.each
.between?
<=>
41. 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.
.scan()
code blocks
.map
kernel
42. less than or equal to (comparison operator)
W
%q
<=
class
43. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
D
kernel
.capitalize
.sub
44. method that tells an argument's place value within an array
^
not and or
w
.index
45. array assignment oprator
^
.index
start_with?
<<
46. operator for "Boolean not"
code blocks
ARGV
A
!
47. a placeholder for a single object that may be a number or string or list or instance of a defined class
<=>
class
=>
variable
48. an array method that
iterator
inheritance
.gsub
.each
49. (regular expression)anchor for the end of a string
%arg
Z
.scan()
struct
50. a string method that removes last character
operators
.between?
.chop
local variable