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 if an argument is within the limits of two numbers
constant
.pop
$
.between?
2. the representation of data from a start to end point
range
object
.select
.sort
3. (regular expression)any non-whitespace character
iterator
inheritance
.methods
S
4. a string method that splits a string into an array
end_with?
.split
.sub
yield
5. (regular expression)anchor for the end of a string
Z
.sub
.even?
||
6. a string method that substitutes ALL occurrences of a string with another.
.between?
.gsub
=>
@@
7. (regular expression)any digit
parameters
d
range
.pop
8. (regular expression)any space or tab or newline or whitespace
^
s
&&
.between?
9. a regular method that is the anchor for the beggining of a line
^
range
float
%arg
10. used in an expression to manipulate objects
.sub
w
operators
<=>
11. method that tells if an argument is within the limits of two numbers
.between?
.map
A
flow control
12. method that sorts items alphabetically
.sort
%
@@
float
13. a string method that substitutes ALL occurrences of a string with another.
.gsub
S
ARGV
kernel
14. a string method that reverses capitalization
.swapcase
<<
.methods
not and or
15. runs a proc that has been stored to a variable
kernel
call
^
W
16. passes value into block of code and assigns it the label of "x"
hash
#{}
.index
|x|
17. defines array of multiple elements seperated by a space
w
||
.even?
%w{}
18. Boolean OR operator
=>
||
.next
<=
19. a collection of objects or values with associated keys
hash
%arg
interpolation
iterator
20. a way to describe patterns in text
regular expressions
break if
$
w
21. comparison operator for "equal to"
==
.index
operators
array
22. array assignment oprator
.between?
interpolation
<<
break if
23. a definition of a concept in an object oriented language.
code blocks
class
d
array
24. method that tells an argument's place value within an array
.split
.index
$
.match
25. method to determine if an object is an even number
|x|
float
.next
.even?
26. greater than or equal to (comparison operator)
?x
>=
end_with?
W
27. a string method that scans object for arguments - uses regular expressions.
<=
#{}
.scan()
.split
28. method to determine if an object is an even number
.even?
^
method
local variable
29. using classes and objects to make real-world concepts in programming.
.gsub
object orientation
hash
.methods
30. interpolation operator
string
#{}
d
w
31. a string method that uncapitalizes first character
.sub
class
.downcase
#{}
32. symbol for a global variable which can be called from anywhere in an application.
!
s
.chop
$
33. the process of deciding which sections of code to execute based on conditions
d
flow control
<
.between?
34. defines an instance variable which only exists within the object it was created in.
%arg
object
kernel
@
35. a module of classes and or functions
constant
library
.index
||
36. assigns a key to a hash value
=>
string
interpolation
.scan()
37. a string method that substitutes THE FIRST occurrence of a string within a string
.sub
?x
.map
d
38. returns ASCII value of x
^
|x|
?x
.methods
39. variable that can be used only where it is defined within an application
local variable
Z
<=>
.sort
40. a regular method that is the anchor for the beggining of a line
A
^
hash
interpolation
41. a string method that makes string all caps.
Z
.upcase
|x|
integer
42. string method that "cleans" extra spaces from strings
.map
strip
s
.sub
43. methods that step through lists element by element (like each or upto or times etc)
operators
code blocks
iterator
float
44. (regular expression)anchor for the end of a string
Z
interpolation
D
.upcase
45. Boolean not and or (lower preference)
<=
%q
not and or
&&
46. operator for "Boolean not"
S
!
range
A
47. a string method that removes last character
operators
.include?()
interpolation
.chop
48. (regular expression)any nondigit
struct
operators
D
<
49. a string method that changes last character to next alphabetical character
.include?()
.upcase
#{}
.next
50. array method that removes last item from an array
.match
.index
.pop
.gsub