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. a string method that substitutes THE FIRST occurrence of a string within a string
.sub
%w{}
.even?
.sort
2. a string method that scans object for arguments - uses regular expressions.
W
.capitalize
.scan()
A
3. using classes and objects to make real-world concepts in programming.
|x|
interpolation
object orientation
range
4. a string method that substitutes ALL occurrences of a string with another.
!
.gsub
|x|
$
5. a string method that reverses capitalization
.chop
s
=>
.swapcase
6. runs a proc that has been stored to a variable
.split
call
?x
.between?
7. a definition of a concept in an object oriented language.
.swapcase
class
#{}
arguments
8. the representation of data from a start to end point
range
.between?
.capitalize
==
9. tells you all methods that an object may invoke.
.methods
<=>
$
.index
10. (regular expression)any space or tab or newline or whitespace
flow control
s
D
w
11. defines a class variable. Can be used anywhere within a class
d
constant
end_with?
@@
12. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
flow control
end_with?
|x|
constant
13. array method that removes last item from an array
W
.pop
start_with?
constant
14. a regular method that is the anchor for the beggining of a line
=>
%arg
^
not and or
15. (regular expression)any nonletter or nondigit or nonunderscore.
W
.index
string
object orientation
16. Boolean OR operator
$:.
||
yield
.pop
17. Boolean not and or (lower preference)
not and or
?x
class
.select
18. array assignment oprator
?x
ARGV
<<
object orientation
19. 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.
%w{}
code blocks
.each
class
20. the remainder operator
class
%
>=
%w{}
21. a string method that makes string all caps.
.between?
.pop
.upcase
D
22. comparison operator for "not equal to"
W
regular expressions
!=
D
23. defines array of multiple elements seperated by a space
call
%w{}
.methods
.each
24. interpolation operator
strip
flow control
#{}
&&
25. comparison operator for "not equal to"
.each
method
^
!=
26. a string method that scans object for arguments - uses regular expressions.
inheritance
?x
.scan()
operators
27. method to determine if an object is an even number
<<
^
.even?
interpolation
28. a string method that capitalizes first character
.between?
end_with?
string
.capitalize
29. sets a text delimiter
.sub
%arg
iterator
yield
30. (regular expression)any nondigit
!
variable
D
Z
31. array method that transforms the contents of an array according to a specified set of rules
==
interpolation
.next
.map
32. a string method that removes last character
if?then:else
.chop
start_with?
.each
33. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
D
^
kernel
integer
34. greater than or equal to (comparison operator)
>=
yield
@@
<
35. the process of deciding which sections of code to execute based on conditions
array
d
flow control
<<
36. (regular expression)anchor for the end of a string
Z
!
.each
.methods
37. a definition of a concept in an object oriented language.
class
.sub
.next
|x|
38. a way to describe patterns in text
!
library
regular expressions
|x|
39. operator for "Boolean not"
constant
!=
!
!=
40. a collection of objects with a defined order
parameters
||
array
.gsub
41. (regular expression)anchor for the end of a string
w
Z
ARGV
strip
42. a special array made from arguments that were added to the command line at start up.
ARGV
Z
array
>=
43. a set of code within a class or object
class
.split
method
Z
44. pushes a new item onto the end of an array.
.gsub
.downcase
operators
<<
45. returns ASCII value of x
start_with?
#{}
kernel
?x
46. (regular expression)anchor for the start of a string
.swapcase
A
.map
@@
47. a string method that splits a string into an array
<=
.split
w
yield
48. method to determine if an object is an even number
code blocks
.even?
strip
.methods
49. a variable that lists the directories where Ruby will look for libraries
.between?
D
class
$:.
50. a single instance of a class.
struct
object
iterator
%arg