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. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
%w{}
constant
w
$
2. (regular expression)anchor for the end of a string
Z
^
operators
.gsub
3. a special array made from arguments that were added to the command line at start up.
inheritance
ARGV
struct
d
4. sets a single character text delimiter for multi-line strings
.even?
%q
.index
A
5. variable that can be used only where it is defined within an application
kernel
|x|
d
local variable
6. method that tells an argument's place value within an array
.index
string
hash
&&
7. method that tells an argument's place value within an array
.capitalize
.index
<<
Z
8. conditionally stops a loop
.sort
hash
break if
regular expressions
9. a collection of objects with a defined order
.index
array
kernel
.capitalize
10. used in an expression to manipulate objects
constant
operators
s
^
11. a number with a decimal point such as 1.0 or 3.1
class
float
flow control
break if
12. methods that step through lists element by element (like each or upto or times etc)
.chop
class
iterator
=>
13. a special class that holds attributes and data but no methods.
.each
struct
arguments
==
14. passes value into block of code and assigns it the label of "x"
?x
.chop
.upcase
|x|
15. array method that transforms the contents of an array according to a specified set of rules
ARGV
constant
interpolation
.map
16. a fixed value that begins with a capital letter such as Pi.
D
constant
.index
.select
17. sets a text delimiter
%arg
.index
.pop
object orientation
18. a string method that changes last character to next alphabetical character
array
.next
range
$:.
19. less than or equal to (comparison operator)
<=
object
Z
||
20. the ternary operator if?then:else
$
!
constant
if?then:else
21. (regular expression)any digit
call
d
.next
%arg
22. (regular expression)any letter or digit or underscore
w
.methods
D
ARGV
23. method that sorts items alphabetically
&&
.sort
ARGV
.pop
24. symbol for a global variable which can be called from anywhere in an application.
$
W
.even?
.index
25. passes value into block of code and assigns it the label of "x"
|x|
>=
?x
.map
26. interpolation operator
.capitalize
.match
#{}
D
27. a way to describe patterns in text
regular expressions
start_with?
.downcase
constant
28. Boolean not and or (lower preference)
not and or
.split
array
inheritance
29. returns ASCII value of x
=>
not and or
?x
class
30. a single instance of a class.
.split
object
if?then:else
arguments
31. the remainder operator
W
%
&&
.capitalize
32. 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.
.between?
float
code blocks
.match
33. a string method that removes last character
variable
D
local variable
.chop
34. (regular expression)any digit
.index
constant
.include?()
d
35. (regular expression)anchor for the start of a string
.pop
.scan()
A
=>
36. method to determine if an object is an even number
|x|
.even?
break if
!=
37. a placeholder for a single object that may be a number or string or list or instance of a defined class
variable
%w{}
w
.sort
38. defines array of multiple elements seperated by a space
.gsub
.next
%w{}
not and or
39. (regular expression)any non-whitespace character
.downcase
inheritance
S
?x
40. an array method that
.each
W
object
class
41. string method that "cleans" extra spaces from strings
class
.sub
.chop
strip
42. interpolation operator
#{}
&&
.sub
operators
43. tells you all methods that an object may invoke.
?x
$
.methods
Z
44. data passed to methods in parenthesis after a method's name.
local variable
.scan()
arguments
.split
45. a regular method that is the anchor for the beggining of a line
^
inheritance
range
#{}
46. method to determine if an object is an even number
.next
S
.even?
%w{}
47. allows for classes to relate to each other in a hierarchy
.index
S
inheritance
local variable
48. a string method that removes last character
.next
.capitalize
constant
.chop
49. method that tells if an argument is within the limits of two numbers
.sort
.between?
iterator
W
50. array method that removes last item from an array
.map
^
!=
.pop