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. data passed to methods in parenthesis after a method's name.
.scan()
.map
arguments
constant
2. the remainder operator
.upcase
%
w
parameters
3. string method that determines if a string starts with a defined string
constant
.index
start_with?
class
4. a string method that changes last character to next alphabetical character
.gsub
integer
.next
.map
5. a regular method that is the anchor for the beggining of a line
A
array
^
w
6. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
.even?
||
d
<=>
7. array method that transforms the contents of an array according to a specified set of rules
local variable
.include?()
.map
range
8. a string method that substituition. Requires 2 arguments.
library
.sub
%arg
W
9. a special array made from arguments that were added to the command line at start up.
ARGV
W
%w{}
.even?
10. symbol for a global variable which can be called from anywhere in an application.
$
S
?x
class
11. array method that selects particular items from an array
break if
.select
!
.next
12. string method that determines if a string ends with a defined string
constant
local variable
.downcase
end_with?
13. array method that removes last item from an array
d
.pop
Z
regular expressions
14. a string method that substitutes ALL occurrences of a string with another.
.split
A
.gsub
S
15. passes value into block of code and assigns it the label of "x"
code blocks
|x|
class
.each
16. using classes and objects to make real-world concepts in programming.
object orientation
.between?
<=
constant
17. sets a single character text delimiter for multi-line strings
!=
#{}
%q
=>
18. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
s
kernel
constant
constant
19. defines an instance variable which only exists within the object it was created in.
$:.
interpolation
@
if?then:else
20. the process of deciding which sections of code to execute based on conditions
=>
.between?
flow control
operators
21. mixing expressions into strings
flow control
%q
interpolation
.even?
22. a definition of a concept in an object oriented language.
|x|
.upcase
class
.map
23. sets a text delimiter
%arg
break if
.sort
||
24. array assignment oprator
.sort
<<
!=
kernel
25. a set of code within a class or object
method
.next
$:.
start_with?
26. a collection of objects with a defined order
<<
$
array
d
27. a string method that capitalizes first character
.capitalize
.map
.next
!
28. interpolation operator
.map
d
.downcase
#{}
29. operator for "Boolean not"
arguments
!
A
#{}
30. used in an expression to manipulate objects
.between?
<
operators
A
31. (regular expression)anchor for the end of a string
Z
class
>=
S
32. a definition of a concept in an object oriented language.
S
class
if?then:else
.capitalize
33. comparison operator for "not equal to"
!=
$
not and or
||
34. a string method that uncapitalizes first character
.index
.select
iterator
.downcase
35. Boolean OR operator
constant
.capitalize
||
.index
36. 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.
arguments
.each
code blocks
%
37. a string method that splits a string into an array
class
.split
.each
.index
38. Boolean AND operator
=>
float
&&
.include?()
39. (regular expression)any nonletter or nondigit or nonunderscore.
#{}
.scan()
W
library
40. allows for classes to relate to each other in a hierarchy
>=
Z
.sub
inheritance
41. a module of classes and or functions
library
d
interpolation
ARGV
42. an array method that returns TRUE or FALSE if the array contains specified item
object orientation
.match
d
.include?()
43. runs a proc that has been stored to a variable
$
.sort
call
object orientation
44. an array method that
.next
.each
code blocks
.include?()
45. array method that removes last item from an array
|x|
.downcase
.pop
%q
46. comparison operator for "equal to"
.map
.capitalize
=>
==
47. a variable that lists the directories where Ruby will look for libraries
$:.
?x
.methods
if?then:else
48. a string method that capitalizes first character
.capitalize
D
.next
iterator
49. (regular expression)any non-whitespace character
.upcase
D
arguments
S
50. array method that transforms the contents of an array according to a specified set of rules
!
.scan()
.map
<=>