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. variable that can be used only where it is defined within an application
Z
local variable
!
array
2. a string method that reverses capitalization
S
<
.swapcase
!=
3. a regular method that is the anchor for the end of a line
<
$
.even?
method
4. a string method that removes last character
.capitalize
.methods
&&
.chop
5. a special class that holds attributes and data but no methods.
.split
<
arguments
struct
6. methods that step through lists element by element (like each or upto or times etc)
<<
iterator
kernel
#{}
7. a string method that uncapitalizes first character
variable
object
.downcase
#{}
8. (regular expression)any letter or digit or underscore
<=
w
parameters
.pop
9. a whole number
call
kernel
class
integer
10. a string method that substitutes THE FIRST occurrence of a string within a string
.sub
.index
^
variable
11. method that tells an argument's place value within an array
start_with?
library
parameters
.index
12. a number with a decimal point such as 1.0 or 3.1
break if
.map
float
regular expressions
13. (regular expression)anchor for the end of a string
||
s
.capitalize
Z
14. defines a class variable. Can be used anywhere within a class
Z
S
@@
d
15. (regular expression)any nondigit
D
.chop
flow control
.scan()
16. an array method that returns TRUE or FALSE if the array contains specified item
.include?()
.split
method
if?then:else
17. method that tells if an argument is within the limits of two numbers
string
start_with?
.split
.between?
18. defines an instance variable which only exists within the object it was created in.
!
@
.sub
not and or
19. (regular expression)any nonletter or nondigit or nonunderscore.
.between?
constant
W
$:.
20. a regular method that is the anchor for the beggining of a line
w
string
^
class
21. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
.swapcase
.chop
not and or
<=>
22. tells ruby a value to pass while iterating a block of code
.next
yield
.capitalize
object orientation
23. (regular expression)any digit
.capitalize
d
^
<
24. an array method that
.each
W
%q
.split
25. allows for classes to relate to each other in a hierarchy
.even?
iterator
inheritance
operators
26. a string method that substitutes ALL occurrences of a string with another.
.gsub
!
>=
iterator
27. symbol for a global variable which can be called from anywhere in an application.
.include?()
A
<<
$
28. (regular expression)anchor for the start of a string
ARGV
local variable
A
.each
29. returns ASCII value of x
W
?x
<
call
30. a string method that splits a string into an array
==
variable
string
.split
31. a placeholder for a single object that may be a number or string or list or instance of a defined class
|x|
variable
constant
D
32. Boolean OR operator
!
||
@@
Z
33. a single instance of a class.
.chop
code blocks
object
class
34. data passed to methods in parenthesis after a method's name.
constant
ARGV
parameters
A
35. (regular expression)any nondigit
|x|
arguments
D
^
36. used in an expression to manipulate objects
<=>
operators
|x|
d
37. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
break if
==
kernel
.select
38. a string method that changes last character to next alphabetical character
.chop
strip
yield
.next
39. passes value into block of code and assigns it the label of "x"
<=>
not and or
|x|
call
40. method to determine if an object is an even number
^
.scan()
.downcase
.even?
41. Boolean not and or (lower preference)
not and or
Z
regular expressions
object orientation
42. pushes a new item onto the end of an array.
.split
<<
.between?
.index
43. a definition of a concept in an object oriented language.
.select
class
Z
inheritance
44. array method that removes last item from an array
?x
.upcase
.pop
.sort
45. a collection of objects with a defined order
.each
arguments
array
$
46. greater than or equal to (comparison operator)
!
break if
>=
string
47. returns ASCII value of x
.downcase
A
?x
@
48. array method that transforms the contents of an array according to a specified set of rules
.next
%w{}
.map
==
49. tells you all methods that an object may invoke.
.methods
$
.index
.split
50. using classes and objects to make real-world concepts in programming.
object orientation
.capitalize
W
.downcase