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 makes string all caps.
.upcase
<=>
>=
ARGV
2. string method that determines if a string ends with a defined string
.gsub
S
kernel
end_with?
3. (regular expression)any nondigit
call
!=
parameters
D
4. using classes and objects to make real-world concepts in programming.
<=>
%
.capitalize
object orientation
5. a string method that removes last character
code blocks
.chop
.select
.index
6. the representation of data from a start to end point
class
range
<=
Z
7. array method that transforms the contents of an array according to a specified set of rules
&&
@@
.next
.map
8. (regular expression)any space or tab or newline or whitespace
w
%arg
.gsub
s
9. a module of classes and or functions
library
start_with?
.even?
variable
10. a string method that uncapitalizes first character
&&
.index
D
.downcase
11. returns ASCII value of x
A
@
?x
.include?()
12. (regular expression)any nondigit
integer
?x
D
.split
13. (regular expression)anchor for the end of a string
.swapcase
object orientation
s
Z
14. a variable that lists the directories where Ruby will look for libraries
$:.
library
d
.between?
15. a string method that reverses capitalization
.swapcase
.methods
A
.scan()
16. comparison operator for "not equal to"
!=
.index
.capitalize
$
17. a placeholder for a single object that may be a number or string or list or instance of a defined class
.next
kernel
@@
variable
18. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
.even?
constant
<<
Z
19. mixing expressions into strings
interpolation
.sub
struct
w
20. assigns a key to a hash value
==
D
=>
@
21. defines a class variable. Can be used anywhere within a class
.even?
Z
.map
@@
22. a special array made from arguments that were added to the command line at start up.
#{}
class
.index
ARGV
23. a regular method that is the anchor for the beggining of a line
.index
!
D
^
24. a collection of objects with a defined order
.gsub
array
&&
break if
25. array method that transforms the contents of an array according to a specified set of rules
.map
.index
<<
.each
26. a string method that splits a string into an array
.scan()
.split
|x|
@
27. tells you all methods that an object may invoke.
.scan()
.methods
.each
variable
28. a string method that scans object for arguments - uses regular expressions.
.index
.scan()
#{}
.each
29. 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.
.sub
integer
constant
code blocks
30. a string method that substitutes ALL occurrences of a string with another.
.gsub
!
<=>
=>
31. sets a single character text delimiter for multi-line strings
%q
library
#{}
array
32. comparison operator for "equal to"
!
^
==
.chop
33. an array method that returns TRUE or FALSE if the array contains specified item
.upcase
.include?()
.gsub
struct
34. array assignment oprator
method
<<
?x
D
35. a string method that uncapitalizes first character
not and or
.downcase
parameters
^
36. an array method that
.each
inheritance
.gsub
interpolation
37. conditionally stops a loop
range
arguments
break if
.next
38. a string method that changes last character to next alphabetical character
.next
.match
.swapcase
>=
39. a definition of a concept in an object oriented language.
class
#{}
variable
local variable
40. allows for classes to relate to each other in a hierarchy
iterator
inheritance
<
.index
41. a string method that capitalizes first character
operators
.capitalize
.map
S
42. (regular expression)anchor for the start of a string
break if
A
.pop
.index
43. method to determine if an object is an even number
=>
A
.even?
s
44. the remainder operator
%
class
%q
@
45. interpolation operator
.chop
#{}
.each
.between?
46. string method that determines if a string starts with a defined string
.capitalize
start_with?
W
@
47. Boolean not and or (lower preference)
range
.chop
W
not and or
48. a definition of a concept in an object oriented language.
?x
library
^
class
49. array method that selects particular items from an array
.select
.sub
#{}
<<
50. methods that step through lists element by element (like each or upto or times etc)
&&
strip
iterator
.sort