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. method to determine if an object is an even number
.even?
<=>
!
<<
2. the process of deciding which sections of code to execute based on conditions
.match
flow control
.sub
^
3. sets a text delimiter
constant
.even?
.methods
%arg
4. a string method that substituition. Requires 2 arguments.
arguments
s
integer
.sub
5. used in an expression to manipulate objects
.downcase
operators
S
.sort
6. a placeholder for a single object that may be a number or string or list or instance of a defined class
.sub
variable
||
$
7. a regular method that is the anchor for the beggining of a line
^
string
%w{}
range
8. defines an instance variable which only exists within the object it was created in.
@
$:.
ARGV
.between?
9. returns ASCII value of x
?x
.index
.between?
>=
10. array method that removes last item from an array
A
.map
.pop
class
11. passes value into block of code and assigns it the label of "x"
W
<
|x|
<=>
12. (regular expression)anchor for the start of a string
.downcase
inheritance
|x|
A
13. (regular expression)any space or tab or newline or whitespace
.capitalize
s
yield
D
14. variable that can be used only where it is defined within an application
$
arguments
local variable
.chop
15. method to determine if an object is an even number
^
$
.even?
%arg
16. method that sorts items alphabetically
call
#{}
break if
.sort
17. using classes and objects to make real-world concepts in programming.
method
object orientation
.chop
.each
18. array method that selects particular items from an array
==
.select
hash
.scan()
19. a regular method that is the anchor for the beggining of a line
.downcase
arguments
.downcase
^
20. methods that step through lists element by element (like each or upto or times etc)
ARGV
#{}
iterator
.downcase
21. an array method that returns TRUE or FALSE if the array contains specified item
d
.between?
.include?()
variable
22. operator for "Boolean not"
.include?()
d
<=>
!
23. a regular method that is the anchor for the end of a line
.gsub
$
^
Z
24. (regular expression)any space or tab or newline or whitespace
%
class
code blocks
s
25. method that tells an argument's place value within an array
.map
.index
<<
array
26. a string method that scans object for arguments - uses regular expressions.
<<
%w{}
.scan()
@@
27. (regular expression)any nonletter or nondigit or nonunderscore.
==
library
.sub
W
28. (regular expression)any nonletter or nondigit or nonunderscore.
.chop
d
object
W
29. (regular expression)any nondigit
interpolation
D
.select
class
30. symbol for a global variable which can be called from anywhere in an application.
inheritance
library
.capitalize
$
31. a string method that splits a string into an array
.sub
.downcase
.split
.methods
32. Boolean not and or (lower preference)
.chop
not and or
integer
.pop
33. a set of code within a class or object
local variable
method
.even?
.even?
34. method that tells an argument's place value within an array
.gsub
.scan()
.index
class
35. a string method that substitutes ALL occurrences of a string with another.
.gsub
?x
.capitalize
Z
36. a string method that scans object for arguments - uses regular expressions.
W
.scan()
<<
.match
37. a string method that capitalizes first character
.swapcase
.sub
.capitalize
$
38. class inheritance operator.
ARGV
<
.even?
parameters
39. comparison operator for "not equal to"
.capitalize
.sort
%w{}
!=
40. a collection of objects or values with associated keys
start_with?
call
!
hash
41. (regular expression)any non-whitespace character
object orientation
S
strip
.include?()
42. a collection of objects with a defined order
=>
array
.pop
variable
43. a string method that substitutes THE FIRST occurrence of a string within a string
code blocks
flow control
.sub
.capitalize
44. method that tells if an argument is within the limits of two numbers
not and or
=>
s
.between?
45. method that tells if an argument is within the limits of two numbers
yield
.between?
&&
code blocks
46. a definition of a concept in an object oriented language.
d
.pop
!
class
47. tells ruby a value to pass while iterating a block of code
#{}
inheritance
.sub
yield
48. a string method that changes last character to next alphabetical character
array
.capitalize
!
.next
49. passes value into block of code and assigns it the label of "x"
d
|x|
ARGV
W
50. interpolation operator
!
#{}
%arg
hash