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 set of code within a class or object
break if
==
method
!
2. string method that determines if a string ends with a defined string
end_with?
.next
S
struct
3. defines an instance variable which only exists within the object it was created in.
.include?()
d
@
.pop
4. string method that "cleans" extra spaces from strings
.sub
strip
.gsub
yield
5. Boolean OR operator
||
?x
.swapcase
=>
6. tells ruby a value to pass while iterating a block of code
if?then:else
yield
constant
.sort
7. a string method that uncapitalizes first character
method
.downcase
>=
@@
8. (regular expression)any nonletter or nondigit or nonunderscore.
&&
.methods
W
library
9. a special array made from arguments that were added to the command line at start up.
.capitalize
s
start_with?
ARGV
10. a number with a decimal point such as 1.0 or 3.1
if?then:else
<=>
float
call
11. a placeholder for a single object that may be a number or string or list or instance of a defined class
|x|
ARGV
variable
^
12. operator for "Boolean not"
.next
.chop
Z
!
13. operator for "Boolean not"
parameters
!
@@
.downcase
14. a definition of a concept in an object oriented language.
flow control
class
A
.index
15. method to determine if an object is an even number
.even?
||
.pop
constant
16. interpolation operator
.chop
S
<<
#{}
17. a string method that splits a string into an array
ARGV
iterator
.split
w
18. data passed to methods in parenthesis after a method's name.
D
arguments
.pop
.chop
19. (regular expression)any letter or digit or underscore
object orientation
w
.methods
.capitalize
20. (regular expression)any non-whitespace character
d
S
.between?
%
21. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
<=
kernel
.each
class
22. a regular method that is the anchor for the end of a line
>=
.downcase
$
.each
23. a string method that uncapitalizes first character
.sort
yield
ARGV
.downcase
24. a string method that removes last character
.chop
$
string
<<
25. a collection of characters such as "Hello world!"
$
string
.next
D
26. (regular expression)any space or tab or newline or whitespace
s
.methods
%arg
.scan()
27. a collection of objects with a defined order
kernel
<
not and or
array
28. variable that can be used only where it is defined within an application
local variable
d
<=
.scan()
29. passes value into block of code and assigns it the label of "x"
string
W
|x|
array
30. (regular expression)any nondigit
.include?()
%w{}
D
.even?
31. array method that selects particular items from an array
w
?x
flow control
.select
32. tells you all methods that an object may invoke.
arguments
.methods
S
A
33. used in an expression to manipulate objects
operators
$
object orientation
class
34. a string method that capitalizes first character
==
.capitalize
object
.scan()
35. method to determine if an object is an even number
A
.next
.even?
.chop
36. defines a class variable. Can be used anywhere within a class
@@
object
not and or
class
37. a string method that changes last character to next alphabetical character
iterator
ARGV
.scan()
.next
38. a string method that changes last character to next alphabetical character
%q
constant
Z
.next
39. a regular method that is the anchor for the beggining of a line
^
.scan()
A
.swapcase
40. an array method that
float
method
variable
.each
41. a special class that holds attributes and data but no methods.
struct
<<
w
variable
42. (regular expression)anchor for the start of a string
A
W
object orientation
if?then:else
43. a string method that substitutes THE FIRST occurrence of a string within a string
.sub
#{}
.chop
class
44. a way to describe patterns in text
S
.capitalize
.include?()
regular expressions
45. array assignment oprator
|x|
<<
D
.chop
46. a string method that removes last character
.next
.capitalize
w
.chop
47. class inheritance operator.
w
flow control
<
D
48. an array method that
.each
variable
.gsub
.pop
49. string method that determines if a string starts with a defined string
S
start_with?
.next
<<
50. (regular expression)anchor for the start of a string
.include?()
A
code blocks
#{}