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)anchor for the start of a string
strip
.split
A
!
2. class inheritance operator.
array
Z
object
<
3. a string method that capitalizes first character
.capitalize
.methods
hash
.chop
4. the representation of data from a start to end point
.each
range
S
W
5. method that tells an argument's place value within an array
.index
.match
==
A
6. runs a proc that has been stored to a variable
.select
.capitalize
call
d
7. method that tells if an argument is within the limits of two numbers
.between?
call
constant
S
8. Boolean not and or (lower preference)
?x
not and or
#{}
%
9. a string method that changes last character to next alphabetical character
<<
=>
.even?
.next
10. an array method that
local variable
.each
@@
.map
11. a way to describe patterns in text
!=
S
regular expressions
.capitalize
12. method to determine if an object is an even number
%
.even?
.downcase
<=
13. a string method that removes last character
.chop
^
float
%arg
14. Boolean OR operator
==
<<
d
||
15. method to determine if an object is an even number
.between?
start_with?
.even?
.index
16. symbol for a global variable which can be called from anywhere in an application.
#{}
.sub
$
kernel
17. conditionally stops a loop
.upcase
S
W
break if
18. data passed to methods in parenthesis after a method's name.
arguments
$:.
.chop
A
19. passes value into block of code and assigns it the label of "x"
$:.
.chop
^
|x|
20. greater than or equal to (comparison operator)
>=
.chop
.next
!=
21. defines a class variable. Can be used anywhere within a class
@@
array
hash
!
22. an array method that returns TRUE or FALSE if the array contains specified item
?x
.sub
.downcase
.include?()
23. a definition of a concept in an object oriented language.
code blocks
object
class
.select
24. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
constant
W
.include?()
w
25. interpolation operator
#{}
Z
<
.each
26. (regular expression)any nonletter or nondigit or nonunderscore.
array
>=
W
?x
27. sets a text delimiter
.sub
%arg
.capitalize
$:.
28. a string method that capitalizes first character
local variable
.capitalize
.split
regular expressions
29. the ternary operator if?then:else
W
S
if?then:else
struct
30. a string method that scans object for arguments - uses regular expressions.
||
not and or
.scan()
if?then:else
31. array method that selects particular items from an array
class
.map
constant
.select
32. sets a single character text delimiter for multi-line strings
%q
.each
A
.next
33. (regular expression)any space or tab or newline or whitespace
.between?
.methods
$
s
34. (regular expression)any digit
flow control
d
w
string
35. a regular method that is the anchor for the beggining of a line
.methods
hash
inheritance
^
36. a placeholder for a single object that may be a number or string or list or instance of a defined class
variable
d
ARGV
flow control
37. a collection of characters such as "Hello world!"
code blocks
.even?
string
.next
38. string method that "cleans" extra spaces from strings
.sub
constant
strip
d
39. (regular expression)any non-whitespace character
method
S
call
array
40. returns ASCII value of x
range
?x
%arg
.next
41. the remainder operator
!
%
.between?
not and or
42. (regular expression)anchor for the end of a string
Z
parameters
.include?()
.sort
43. a whole number
kernel
integer
iterator
.methods
44. a special class that holds attributes and data but no methods.
Z
if?then:else
struct
^
45. pushes a new item onto the end of an array.
.select
<<
^
.between?
46. defines array of multiple elements seperated by a space
class
.select
%w{}
A
47. a single instance of a class.
object
not and or
.methods
.between?
48. comparison operator for "not equal to"
if?then:else
!=
flow control
<=>
49. 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.
.scan()
code blocks
integer
class
50. returns ASCII value of x
interpolation
inheritance
?x
Z