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. method that tells an argument's place value within an array
D
.index
class
%w{}
2. a string method that removes last character
.select
.chop
%w{}
.upcase
3. a special class that holds attributes and data but no methods.
struct
object
.sub
call
4. assigns a key to a hash value
.between?
=>
.each
.sort
5. conditionally stops a loop
.swapcase
arguments
#{}
break if
6. an array method that returns TRUE or FALSE if the array contains specified item
.downcase
.downcase
constant
.include?()
7. a definition of a concept in an object oriented language.
not and or
class
break if
?x
8. returns ASCII value of x
local variable
.each
?x
hash
9. runs a proc that has been stored to a variable
<=
call
integer
d
10. comparison operator for "not equal to"
.between?
!=
.chop
object
11. a definition of a concept in an object oriented language.
.between?
class
start_with?
operators
12. a single instance of a class.
<
object
<=>
float
13. a collection of objects with a defined order
library
S
class
array
14. a string method that makes string all caps.
.upcase
d
class
local variable
15. (regular expression)any letter or digit or underscore
!
operators
w
|x|
16. a string method that removes last character
.chop
?x
constant
.methods
17. a string method that capitalizes first character
.chop
.capitalize
yield
variable
18. used in an expression to manipulate objects
operators
local variable
hash
<<
19. (regular expression)any digit
d
.methods
class
operators
20. (regular expression)any nondigit
#{}
<<
D
.downcase
21. comparison operator for "not equal to"
||
.downcase
!=
.even?
22. mixing expressions into strings
^
interpolation
class
?x
23. (regular expression)any digit
kernel
.even?
.sub
d
24. a string method that reverses capitalization
.swapcase
s
D
.gsub
25. (regular expression)any nonletter or nondigit or nonunderscore.
s
W
.gsub
object
26. (regular expression)any nondigit
@
w
D
.each
27. tells ruby a value to pass while iterating a block of code
.downcase
s
yield
constant
28. (regular expression)any nonletter or nondigit or nonunderscore.
variable
=>
W
iterator
29. (regular expression)any non-whitespace character
w
@
S
<=
30. interpolation operator
.each
.include?()
#{}
d
31. pushes a new item onto the end of an array.
<<
<=
range
w
32. defines array of multiple elements seperated by a space
struct
!
%w{}
%q
33. a string method that splits a string into an array
||
s
.select
.split
34. a number with a decimal point such as 1.0 or 3.1
.gsub
$
float
<=
35. variable that can be used only where it is defined within an application
.each
local variable
ARGV
.between?
36. data passed to methods in parenthesis after a method's name.
library
class
arguments
float
37. a special array made from arguments that were added to the command line at start up.
.gsub
<=>
break if
ARGV
38. array method that removes last item from an array
.sort
library
<<
.pop
39. method that tells an argument's place value within an array
.index
.chop
$
Z
40. a placeholder for a single object that may be a number or string or list or instance of a defined class
.select
variable
.include?()
object
41. array method that selects particular items from an array
.select
hash
<=>
library
42. an array method that returns TRUE or FALSE if the array contains specified item
.include?()
==
.scan()
integer
43. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
w
.methods
constant
.each
44. string method that determines if a string starts with a defined string
d
.between?
start_with?
struct
45. method that tells if an argument is within the limits of two numbers
.between?
A
s
.each
46. method to determine if an object is an even number
.even?
regular expressions
kernel
=>
47. string method that "cleans" extra spaces from strings
strip
<=>
Z
break if
48. a collection of objects or values with associated keys
!
parameters
hash
A
49. the process of deciding which sections of code to execute based on conditions
d
object
flow control
?x
50. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
kernel
S
&&
iterator