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 definition of a concept in an object oriented language.
library
%arg
class
inheritance
2. the ternary operator if?then:else
#{}
regular expressions
call
if?then:else
3. string method that determines if a string starts with a defined string
S
start_with?
<
flow control
4. symbol for a global variable which can be called from anywhere in an application.
.pop
.index
local variable
$
5. a string method that scans object for arguments - uses regular expressions.
W
.scan()
.select
<
6. passes value into block of code and assigns it the label of "x"
||
.map
@
|x|
7. defines a class variable. Can be used anywhere within a class
s
.gsub
W
@@
8. operator for "Boolean not"
.index
range
!
inheritance
9. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
constant
.chop
==
.gsub
10. a string method that removes last character
.scan()
.next
.index
.chop
11. sets a text delimiter
strip
%arg
.sub
.map
12. method to determine if an object is an even number
.even?
%q
.methods
hash
13. Boolean not and or (lower preference)
&&
>=
$
not and or
14. a string method that splits a string into an array
@
.each
.split
.sub
15. a way to describe patterns in text
.upcase
array
.gsub
regular expressions
16. array method that removes last item from an array
.pop
if?then:else
.index
%w{}
17. an array method that returns TRUE or FALSE if the array contains specified item
.include?()
.map
.scan()
?x
18. allows for classes to relate to each other in a hierarchy
inheritance
S
A
.methods
19. conditionally stops a loop
code blocks
w
break if
<<
20. an array method that
.even?
.each
&&
regular expressions
21. (regular expression)any digit
.chop
d
%q
strip
22. a regular method that is the anchor for the beggining of a line
.swapcase
!=
^
local variable
23. a string method that changes last character to next alphabetical character
^
.next
arguments
Z
24. defines an instance variable which only exists within the object it was created in.
object
.sort
<=>
@
25. method that sorts items alphabetically
float
.select
.sort
start_with?
26. a string method that substitutes ALL occurrences of a string with another.
not and or
.gsub
.sub
.map
27. (regular expression)anchor for the end of a string
ARGV
<=
Z
^
28. (regular expression)any letter or digit or underscore
w
<<
.select
.capitalize
29. an array method that
yield
.split
.include?()
.each
30. used in an expression to manipulate objects
#{}
operators
.even?
not and or
31. a string method that uncapitalizes first character
.downcase
#{}
<=>
class
32. Boolean AND operator
&&
.upcase
not and or
<<
33. interpolation operator
.methods
#{}
break if
.select
34. (regular expression)any letter or digit or underscore
.upcase
w
d
<<
35. Boolean OR operator
class
||
start_with?
%arg
36. methods that step through lists element by element (like each or upto or times etc)
.even?
.select
#{}
iterator
37. a collection of characters such as "Hello world!"
object
string
class
.methods
38. a string method that removes last character
.map
@
.next
.chop
39. (regular expression)any digit
.index
iterator
d
.include?()
40. (regular expression)anchor for the end of a string
#{}
.methods
local variable
Z
41. a placeholder for a single object that may be a number or string or list or instance of a defined class
A
<=
|x|
variable
42. data passed to methods in parenthesis after a method's name.
object orientation
library
kernel
arguments
43. array method that selects particular items from an array
@@
.even?
code blocks
.select
44. method that tells an argument's place value within an array
|x|
.even?
.index
d
45. passes value into block of code and assigns it the label of "x"
class
|x|
.next
.even?
46. array method that transforms the contents of an array according to a specified set of rules
.map
.methods
.next
.include?()
47. class inheritance operator.
break if
|x|
<
range
48. 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.
.capitalize
kernel
ARGV
code blocks
49. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
<=>
w
|x|
=>
50. the process of deciding which sections of code to execute based on conditions
library
object orientation
code blocks
flow control