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. array method that removes last item from an array
yield
.pop
!
$
2. a collection of objects with a defined order
array
A
!=
.downcase
3. method to determine if an object is an even number
strip
d
.even?
.methods
4. class inheritance operator.
<
class
.methods
D
5. (regular expression)any nondigit
if?then:else
D
#{}
iterator
6. an array method that returns TRUE or FALSE if the array contains specified item
A
.include?()
hash
object orientation
7. (regular expression)any digit
.match
string
d
$
8. (regular expression)anchor for the start of a string
<<
$:.
A
method
9. methods that step through lists element by element (like each or upto or times etc)
iterator
.include?()
yield
strip
10. an array method that returns TRUE or FALSE if the array contains specified item
.include?()
^
parameters
local variable
11. a variable that lists the directories where Ruby will look for libraries
$:.
.gsub
.methods
local variable
12. an array method that
.chop
|x|
D
.each
13. a string method that changes last character to next alphabetical character
.downcase
.between?
.sub
.next
14. (regular expression)any nondigit
@@
<<
.sub
D
15. a string method that capitalizes first character
.capitalize
string
class
?x
16. the representation of data from a start to end point
%arg
float
range
.next
17. (regular expression)any letter or digit or underscore
object orientation
.capitalize
.downcase
w
18. a string method that uncapitalizes first character
.downcase
s
.index
call
19. runs a proc that has been stored to a variable
.sub
class
call
not and or
20. a way to describe patterns in text
regular expressions
A
.each
.methods
21. less than or equal to (comparison operator)
$
range
<=
#{}
22. the process of deciding which sections of code to execute based on conditions
|x|
flow control
interpolation
w
23. tells ruby a value to pass while iterating a block of code
.upcase
yield
iterator
W
24. a module of classes and or functions
library
method
.select
constant
25. sets a single character text delimiter for multi-line strings
^
%q
||
flow control
26. data passed to methods in parenthesis after a method's name.
parameters
s
inheritance
yield
27. defines a class variable. Can be used anywhere within a class
@@
.include?()
range
object orientation
28. method to determine if an object is an even number
.even?
.gsub
yield
call
29. using classes and objects to make real-world concepts in programming.
class
w
$:.
object orientation
30. the remainder operator
.even?
code blocks
%
.map
31. greater than or equal to (comparison operator)
>=
!
not and or
.split
32. a string method that capitalizes first character
.sub
<<
.capitalize
<<
33. a string method that makes string all caps.
d
^
.upcase
S
34. array assignment oprator
<<
.capitalize
end_with?
.between?
35. 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.
.gsub
.pop
code blocks
iterator
36. tells you all methods that an object may invoke.
.each
.methods
==
D
37. (regular expression)anchor for the end of a string
parameters
string
constant
Z
38. a fixed value that begins with a capital letter such as Pi.
@@
constant
array
range
39. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
#{}
kernel
.map
code blocks
40. a number with a decimal point such as 1.0 or 3.1
float
regular expressions
%q
<<
41. passes value into block of code and assigns it the label of "x"
Z
s
|x|
.next
42. mixing expressions into strings
library
.swapcase
interpolation
end_with?
43. a regular method that is the anchor for the beggining of a line
^
.include?()
.gsub
constant
44. symbol for a global variable which can be called from anywhere in an application.
$
parameters
A
!=
45. returns ASCII value of x
end_with?
W
?x
.scan()
46. a single instance of a class.
.downcase
.between?
object
struct
47. a collection of characters such as "Hello world!"
object orientation
.next
string
variable
48. a definition of a concept in an object oriented language.
start_with?
class
D
!
49. defines array of multiple elements seperated by a space
.scan()
%w{}
?x
.upcase
50. conditionally stops a loop
break if
constant
.scan()
s