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. (regular expression)any nonletter or nondigit or nonunderscore.
.between?
.pop
class
W
2. a definition of a concept in an object oriented language.
regular expressions
.methods
.swapcase
class
3. a module of classes and or functions
library
array
float
.pop
4. assigns a key to a hash value
D
S
if?then:else
=>
5. used in an expression to manipulate objects
operators
.methods
%
iterator
6. defines a class variable. Can be used anywhere within a class
@@
w
.each
||
7. (regular expression)anchor for the end of a string
integer
string
Z
s
8. (regular expression)any non-whitespace character
.map
.between?
<<
S
9. symbol for a global variable which can be called from anywhere in an application.
.next
$
%q
A
10. string method that determines if a string ends with a defined string
W
.capitalize
end_with?
object orientation
11. method that tells an argument's place value within an array
<=>
.methods
.include?()
.index
12. conditionally stops a loop
$
break if
%q
^
13. passes value into block of code and assigns it the label of "x"
#{}
|x|
.even?
ARGV
14. data passed to methods in parenthesis after a method's name.
parameters
.match
.between?
<
15. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
.even?
kernel
inheritance
D
16. method that tells if an argument is within the limits of two numbers
.between?
|x|
.index
<
17. (regular expression)anchor for the start of a string
hash
A
.index
|x|
18. a single instance of a class.
method
.capitalize
.map
object
19. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
|x|
d
<=>
#{}
20. (regular expression)any space or tab or newline or whitespace
w
.between?
s
string
21. a way to describe patterns in text
regular expressions
strip
operators
.sub
22. comparison operator for "not equal to"
call
&&
!=
#{}
23. a whole number
integer
.capitalize
.downcase
|x|
24. interpolation operator
arguments
.chop
#{}
%q
25. Boolean AND operator
&&
d
strip
iterator
26. allows for classes to relate to each other in a hierarchy
.sub
method
inheritance
.even?
27. (regular expression)any nondigit
class
D
|x|
$
28. runs a proc that has been stored to a variable
.each
call
.scan()
library
29. method to determine if an object is an even number
S
.even?
local variable
.between?
30. a string method that substitutes THE FIRST occurrence of a string within a string
method
.between?
==
.sub
31. a fixed value that begins with a capital letter such as Pi.
constant
.next
float
!
32. comparison operator for "equal to"
iterator
end_with?
==
.each
33. mixing expressions into strings
flow control
interpolation
.scan()
object orientation
34. a set of code within a class or object
.each
.split
method
flow control
35. defines array of multiple elements seperated by a space
%w{}
S
class
.map
36. (regular expression)anchor for the end of a string
|x|
.methods
Z
?x
37. returns ASCII value of x
?x
.methods
.chop
if?then:else
38. a string method that reverses capitalization
.sub
.swapcase
==
.methods
39. sets a single character text delimiter for multi-line strings
%q
kernel
method
arguments
40. variable that can be used only where it is defined within an application
.methods
local variable
.downcase
^
41. a string method that substituition. Requires 2 arguments.
object orientation
array
.sub
.each
42. a collection of characters such as "Hello world!"
.map
.chop
string
W
43. interpolation operator
S
#{}
string
code blocks
44. array method that removes last item from an array
array
.pop
|x|
.map
45. a string method that changes last character to next alphabetical character
.next
.each
struct
variable
46. a string method that changes last character to next alphabetical character
local variable
<
?x
.next
47. a string method that substitutes ALL occurrences of a string with another.
D
.match
.gsub
?x
48. string method that "cleans" extra spaces from strings
s
strip
flow control
Z
49. a regular method that is the anchor for the beggining of a line
.pop
S
||
^
50. tells you all methods that an object may invoke.
integer
.methods
yield
S