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. an array method that
parameters
.split
S
.each
2. conditionally stops a loop
=>
.sort
constant
break if
3. comparison operator for "not equal to"
%w{}
interpolation
<
!=
4. a regular method that is the anchor for the beggining of a line
.split
?x
.include?()
^
5. a whole number
.sort
$
operators
integer
6. comparison operator for "equal to"
.between?
constant
start_with?
==
7. comparison operator for "not equal to"
!=
s
.methods
?x
8. (regular expression)any nondigit
integer
^
D
constant
9. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
!
.include?()
break if
kernel
10. method that sorts items alphabetically
Z
.sort
A
constant
11. a string method that substituition. Requires 2 arguments.
<<
.sub
.include?()
class
12. the process of deciding which sections of code to execute based on conditions
.sub
flow control
array
float
13. method that tells if an argument is within the limits of two numbers
object
.chop
.between?
%q
14. method that tells if an argument is within the limits of two numbers
end_with?
%
start_with?
.between?
15. method that tells an argument's place value within an array
!=
.scan()
.methods
.index
16. (regular expression)any non-whitespace character
.even?
!=
.chop
S
17. defines array of multiple elements seperated by a space
%w{}
.split
.each
interpolation
18. sets a text delimiter
parameters
.sub
%arg
S
19. method to determine if an object is an even number
.sub
arguments
D
.even?
20. a string method that capitalizes first character
@@
.capitalize
.gsub
operators
21. data passed to methods in parenthesis after a method's name.
code blocks
%
if?then:else
parameters
22. a definition of a concept in an object oriented language.
parameters
<<
class
hash
23. a definition of a concept in an object oriented language.
!
integer
class
method
24. (regular expression)any digit
.even?
d
^
w
25. a set of code within a class or object
W
w
method
@
26. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
%w{}
constant
D
object
27. a string method that substitutes ALL occurrences of a string with another.
.methods
.gsub
object
!
28. method to determine if an object is an even number
.even?
method
w
struct
29. (regular expression)any space or tab or newline or whitespace
ARGV
s
break if
.sub
30. a string method that splits a string into an array
object
<
.between?
.split
31. greater than or equal to (comparison operator)
>=
break if
object orientation
yield
32. string method that determines if a string ends with a defined string
string
array
end_with?
w
33. a string method that uncapitalizes first character
S
?x
.downcase
d
34. a module of classes and or functions
library
.chop
interpolation
.downcase
35. symbol for a global variable which can be called from anywhere in an application.
interpolation
yield
$
.map
36. a collection of objects with a defined order
array
.index
parameters
.index
37. interpolation operator
end_with?
object
local variable
#{}
38. 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
.select
.sub
==
39. sets a single character text delimiter for multi-line strings
.methods
parameters
%q
class
40. an array method that
string
.next
.downcase
.each
41. array assignment oprator
<<
method
%q
flow control
42. an array method that returns TRUE or FALSE if the array contains specified item
.include?()
?x
.sort
.gsub
43. 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.
.index
code blocks
=>
%arg
44. defines an instance variable which only exists within the object it was created in.
@
.each
d
^
45. a string method that removes last character
.include?()
.chop
class
object orientation
46. (regular expression)any letter or digit or underscore
|x|
call
.capitalize
w
47. a special class that holds attributes and data but no methods.
%w{}
struct
.methods
.even?
48. array method that selects particular items from an array
regular expressions
.select
library
!=
49. used in an expression to manipulate objects
operators
$
.sub
d
50. the remainder operator
constant
S
%
.index