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 scans object for arguments - uses regular expressions.
object orientation
^
.scan()
inheritance
2. (regular expression)any letter or digit or underscore
|x|
.chop
w
?x
3. sets a single character text delimiter for multi-line strings
.methods
%q
local variable
flow control
4. a definition of a concept in an object oriented language.
.next
<<
class
.pop
5. method that tells an argument's place value within an array
%w{}
.index
.methods
yield
6. interpolation operator
integer
.methods
struct
#{}
7. defines an instance variable which only exists within the object it was created in.
.each
flow control
call
@
8. mixing expressions into strings
interpolation
class
.swapcase
.map
9. (regular expression)any nonletter or nondigit or nonunderscore.
W
float
d
<<
10. a variable that lists the directories where Ruby will look for libraries
range
$:.
.each
?x
11. method to determine if an object is an even number
.swapcase
.even?
w
.match
12. string method that "cleans" extra spaces from strings
strip
.select
|x|
^
13. a string method that uncapitalizes first character
.include?()
.downcase
#{}
.pop
14. (regular expression)any non-whitespace character
class
&&
.sub
S
15. (regular expression)any non-whitespace character
constant
.sort
S
%w{}
16. the representation of data from a start to end point
range
operators
method
float
17. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
?x
D
<=>
#{}
18. the remainder operator
D
%arg
@
%
19. array method that removes last item from an array
.include?()
.pop
^
==
20. operator for "Boolean not"
method
.gsub
!
?x
21. a string method that capitalizes first character
.capitalize
range
.downcase
W
22. (regular expression)any nondigit
.pop
D
end_with?
ARGV
23. a number with a decimal point such as 1.0 or 3.1
string
float
A
.even?
24. a string method that removes last character
.chop
.sub
<
.match
25. a string method that capitalizes first character
.downcase
.next
.capitalize
string
26. symbol for a global variable which can be called from anywhere in an application.
|x|
$
.each
@
27. (regular expression)any digit
struct
operators
d
strip
28. comparison operator for "not equal to"
.each
w
!=
parameters
29. a string method that changes last character to next alphabetical character
.next
library
s
S
30. a string method that makes string all caps.
.methods
.upcase
==
parameters
31. data passed to methods in parenthesis after a method's name.
.index
kernel
struct
arguments
32. (regular expression)anchor for the start of a string
.include?()
A
hash
.gsub
33. a special array made from arguments that were added to the command line at start up.
class
ARGV
$:.
parameters
34. data passed to methods in parenthesis after a method's name.
d
parameters
==
<<
35. a regular method that is the anchor for the beggining of a line
array
.match
.gsub
^
36. array assignment oprator
<<
&&
regular expressions
.even?
37. a collection of characters such as "Hello world!"
iterator
string
^
%arg
38. Boolean OR operator
flow control
hash
.chop
||
39. defines a class variable. Can be used anywhere within a class
@@
^
w
.next
40. (regular expression)any space or tab or newline or whitespace
.index
|x|
s
object
41. method that tells if an argument is within the limits of two numbers
A
!
%w{}
.between?
42. a string method that reverses capitalization
yield
.swapcase
strip
interpolation
43. (regular expression)anchor for the end of a string
Z
if?then:else
.even?
.select
44. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
!=
object orientation
==
constant
45. conditionally stops a loop
if?then:else
.index
break if
.capitalize
46. comparison operator for "not equal to"
.capitalize
!=
call
object
47. an array method that returns TRUE or FALSE if the array contains specified item
=>
.chop
.include?()
#{}
48. tells you all methods that an object may invoke.
.scan()
?x
.methods
&&
49. variable that can be used only where it is defined within an application
.methods
.swapcase
.scan()
local variable
50. assigns a key to a hash value
S
<=
yield
=>