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 special class that holds attributes and data but no methods.
variable
hash
flow control
struct
2. conditionally stops a loop
break if
code blocks
.chop
$:.
3. comparison operator for "not equal to"
strip
hash
!=
!
4. a string method that changes last character to next alphabetical character
w
.include?()
.next
class
5. a placeholder for a single object that may be a number or string or list or instance of a defined class
variable
=>
@@
|x|
6. a string method that capitalizes first character
#{}
library
s
.capitalize
7. a string method that scans object for arguments - uses regular expressions.
.chop
arguments
.scan()
<=>
8. a collection of objects with a defined order
start_with?
array
.pop
call
9. string method that "cleans" extra spaces from strings
%
==
strip
.sub
10. method that tells an argument's place value within an array
Z
.index
.downcase
.downcase
11. an array method that
iterator
.each
.select
end_with?
12. Boolean OR operator
flow control
library
W
||
13. allows for classes to relate to each other in a hierarchy
class
<=
inheritance
%
14. method that tells if an argument is within the limits of two numbers
interpolation
.split
$
.between?
15. defines a class variable. Can be used anywhere within a class
#{}
yield
start_with?
@@
16. array method that transforms the contents of an array according to a specified set of rules
.map
<
.next
.even?
17. (regular expression)any space or tab or newline or whitespace
s
<=>
@
.even?
18. class inheritance operator.
ARGV
<
A
.methods
19. the process of deciding which sections of code to execute based on conditions
.upcase
%
S
flow control
20. data passed to methods in parenthesis after a method's name.
parameters
flow control
$
d
21. a regular method that is the anchor for the end of a line
?x
arguments
$
D
22. a string method that substitutes ALL occurrences of a string with another.
.gsub
if?then:else
.include?()
$:.
23. array method that transforms the contents of an array according to a specified set of rules
.chop
.map
struct
?x
24. method to determine if an object is an even number
.scan()
.even?
.methods
yield
25. the representation of data from a start to end point
A
range
==
^
26. (regular expression)anchor for the start of a string
!
w
constant
A
27. method that tells if an argument is within the limits of two numbers
constant
.chop
s
.between?
28. a set of code within a class or object
method
.include?()
!=
range
29. (regular expression)any non-whitespace character
S
#{}
.sub
@@
30. a collection of characters such as "Hello world!"
@@
S
end_with?
string
31. defines an instance variable which only exists within the object it was created in.
@
regular expressions
.gsub
$
32. (regular expression)any non-whitespace character
S
&&
.scan()
w
33. a string method that splits a string into an array
.gsub
.split
ARGV
.capitalize
34. Boolean not and or (lower preference)
=>
!
not and or
.map
35. returns ASCII value of x
?x
.even?
D
.between?
36. operator for "Boolean not"
<<
!
@
string
37. comparison operator for "not equal to"
not and or
.match
!=
A
38. operator for "Boolean not"
==
method
s
!
39. a module of classes and or functions
.each
library
.split
$
40. an array method that returns TRUE or FALSE if the array contains specified item
|x|
method
d
.include?()
41. a string method that removes last character
.downcase
kernel
.chop
!
42. a way to describe patterns in text
.even?
regular expressions
.next
arguments
43. a string method that reverses capitalization
.swapcase
struct
library
A
44. mixing expressions into strings
arguments
.downcase
range
interpolation
45. tells ruby a value to pass while iterating a block of code
yield
break if
.swapcase
#{}
46. a definition of a concept in an object oriented language.
=>
class
D
iterator
47. (regular expression)anchor for the end of a string
Z
=>
.each
%w{}
48. (regular expression)any nondigit
@
.upcase
A
D
49. Boolean AND operator
&&
<=>
!=
interpolation
50. a string method that uncapitalizes first character
.index
|x|
^
.downcase