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. mixing expressions into strings
interpolation
string
strip
w
2. sets a text delimiter
d
%arg
S
range
3. a string method that splits a string into an array
float
.pop
.between?
.split
4. (regular expression)anchor for the start of a string
!
A
.upcase
.include?()
5. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
call
<=>
break if
local variable
6. passes value into block of code and assigns it the label of "x"
struct
?x
|x|
class
7. (regular expression)any nondigit
D
.sub
.each
?x
8. returns ASCII value of x
.pop
.capitalize
?x
.swapcase
9. a definition of a concept in an object oriented language.
class
Z
.upcase
float
10. operator for "Boolean not"
!
<
D
@
11. comparison operator for "equal to"
|x|
==
.downcase
.sub
12. tells ruby a value to pass while iterating a block of code
range
w
%
yield
13. a string method that substitutes THE FIRST occurrence of a string within a string
@@
.even?
.sub
iterator
14. (regular expression)any nondigit
start_with?
?x
D
%q
15. an array method that returns TRUE or FALSE if the array contains specified item
constant
.include?()
.index
.between?
16. a collection of objects with a defined order
array
.map
A
flow control
17. a regular method that is the anchor for the beggining of a line
A
s
^
.upcase
18. defines an instance variable which only exists within the object it was created in.
#{}
s
@
.even?
19. (regular expression)any space or tab or newline or whitespace
$
s
.index
|x|
20. array method that selects particular items from an array
.select
S
break if
code blocks
21. tells you all methods that an object may invoke.
.index
start_with?
.include?()
.methods
22. operator for "Boolean not"
.between?
%q
!
break if
23. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
inheritance
kernel
.gsub
<<
24. a set of code within a class or object
method
strip
end_with?
s
25. a special array made from arguments that were added to the command line at start up.
.even?
iterator
.downcase
ARGV
26. methods that step through lists element by element (like each or upto or times etc)
Z
.chop
<<
iterator
27. the remainder operator
=>
.each
%
<=
28. a module of classes and or functions
library
$
$:.
inheritance
29. less than or equal to (comparison operator)
<=
class
D
>=
30. a variable that lists the directories where Ruby will look for libraries
Z
S
.include?()
$:.
31. a string method that substitutes ALL occurrences of a string with another.
||
.gsub
<<
float
32. string method that determines if a string starts with a defined string
.chop
start_with?
%
flow control
33. a way to describe patterns in text
#{}
.split
regular expressions
<<
34. a regular method that is the anchor for the end of a line
regular expressions
end_with?
$
#{}
35. a string method that changes last character to next alphabetical character
%q
.next
method
.select
36. sets a single character text delimiter for multi-line strings
%q
&&
||
if?then:else
37. method to determine if an object is an even number
parameters
!=
.even?
w
38. conditionally stops a loop
break if
.index
.upcase
struct
39. allows for classes to relate to each other in a hierarchy
inheritance
D
d
.include?()
40. greater than or equal to (comparison operator)
>=
object orientation
.pop
.sort
41. method that tells an argument's place value within an array
.index
interpolation
end_with?
d
42. a collection of characters such as "Hello world!"
class
string
w
$
43. the representation of data from a start to end point
.map
range
regular expressions
!
44. defines array of multiple elements seperated by a space
$
%arg
%w{}
$
45. a collection of objects or values with associated keys
hash
.chop
.map
!
46. an array method that
.capitalize
hash
%arg
.each
47. the process of deciding which sections of code to execute based on conditions
flow control
ARGV
>=
.include?()
48. data passed to methods in parenthesis after a method's name.
S
local variable
.index
arguments
49. 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.
.downcase
code blocks
local variable
w
50. runs a proc that has been stored to a variable
constant
.each
.upcase
call