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. data passed to methods in parenthesis after a method's name.
.index
.chop
arguments
<=>
2. a string method that changes last character to next alphabetical character
.next
Z
w
^
3. an array method that returns TRUE or FALSE if the array contains specified item
constant
.downcase
<<
.include?()
4. a fixed value that begins with a capital letter such as Pi.
constant
?x
<=
.split
5. (regular expression)any nonletter or nondigit or nonunderscore.
object orientation
.between?
W
integer
6. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
s
%q
constant
|x|
7. a definition of a concept in an object oriented language.
class
.scan()
.upcase
.match
8. a way to describe patterns in text
.gsub
!
==
regular expressions
9. passes value into block of code and assigns it the label of "x"
&&
arguments
|x|
$
10. defines an instance variable which only exists within the object it was created in.
@
!=
object orientation
.capitalize
11. the process of deciding which sections of code to execute based on conditions
flow control
not and or
constant
!
12. (regular expression)any space or tab or newline or whitespace
.even?
.upcase
s
string
13. a string method that substitutes ALL occurrences of a string with another.
.gsub
class
object orientation
strip
14. array method that transforms the contents of an array according to a specified set of rules
.methods
.pop
.sub
.map
15. a placeholder for a single object that may be a number or string or list or instance of a defined class
.scan()
D
!
variable
16. (regular expression)any non-whitespace character
&&
.capitalize
arguments
S
17. used in an expression to manipulate objects
operators
S
.capitalize
s
18. operator for "Boolean not"
W
method
.next
!
19. assigns a key to a hash value
code blocks
?x
=>
.include?()
20. (regular expression)any non-whitespace character
break if
^
<<
S
21. the ternary operator if?then:else
start_with?
library
if?then:else
<=>
22. a string method that removes last character
arguments
.chop
class
if?then:else
23. passes value into block of code and assigns it the label of "x"
|x|
w
<
!
24. using classes and objects to make real-world concepts in programming.
arguments
object orientation
%arg
string
25. method that tells an argument's place value within an array
.index
.upcase
D
<
26. array method that selects particular items from an array
.select
call
end_with?
@
27. method to determine if an object is an even number
.even?
parameters
w
.next
28. symbol for a global variable which can be called from anywhere in an application.
$
.upcase
kernel
.downcase
29. (regular expression)anchor for the start of a string
A
.sort
%
.sub
30. a module of classes and or functions
$:.
local variable
<<
library
31. a string method that removes last character
=>
.scan()
.chop
call
32. method to determine if an object is an even number
.even?
$:.
object
|x|
33. a regular method that is the anchor for the beggining of a line
array
w
!
^
34. a set of code within a class or object
s
method
@@
Z
35. a number with a decimal point such as 1.0 or 3.1
%arg
float
<<
array
36. a single instance of a class.
.capitalize
object
integer
s
37. Boolean AND operator
.select
float
class
&&
38. a string method (with /REGEX/ and starting_point separated by comma) that outputs the first string matching the defined regular expression from an optionally defined starting point
@
.even?
yield
.match
39. a variable that lists the directories where Ruby will look for libraries
.select
.even?
$:.
operators
40. methods that step through lists element by element (like each or upto or times etc)
.sub
variable
.gsub
iterator
41. Boolean OR operator
.upcase
inheritance
==
||
42. mixing expressions into strings
library
interpolation
<<
variable
43. (regular expression)anchor for the end of a string
d
Z
.index
.sub
44. allows for classes to relate to each other in a hierarchy
inheritance
parameters
<
.capitalize
45. runs a proc that has been stored to a variable
.scan()
=>
call
string
46. a string method that splits a string into an array
.capitalize
constant
call
.split
47. tells you all methods that an object may invoke.
#{}
.swapcase
yield
.methods
48. method that sorts items alphabetically
==
.sort
array
?x
49. variable that can be used only where it is defined within an application
!
local variable
?x
D
50. Boolean not and or (lower preference)
!
.map
#{}
not and or