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. an array method that returns TRUE or FALSE if the array contains specified item
.include?()
class
.next
if?then:else
2. defines array of multiple elements seperated by a space
%w{}
%q
D
if?then:else
3. comparison operator for "not equal to"
.downcase
!=
.index
operators
4. tells you all methods that an object may invoke.
=>
.pop
.methods
.map
5. interpolation operator
=>
%q
#{}
<<
6. defines a class variable. Can be used anywhere within a class
@@
=>
object orientation
struct
7. methods that step through lists element by element (like each or upto or times etc)
regular expressions
@@
iterator
%w{}
8. using classes and objects to make real-world concepts in programming.
.split
S
?x
object orientation
9. (regular expression)any non-whitespace character
S
inheritance
!
.gsub
10. comparison operator for "not equal to"
!=
#{}
<<
class
11. (regular expression)any digit
<<
d
!=
#{}
12. a string method that makes string all caps.
regular expressions
integer
?x
.upcase
13. (regular expression)any nondigit
call
.sort
D
>=
14. a string method that substitutes ALL occurrences of a string with another.
=>
arguments
.gsub
.chop
15. Boolean not and or (lower preference)
not and or
.scan()
#{}
ARGV
16. (regular expression)anchor for the end of a string
Z
d
.swapcase
.downcase
17. less than or equal to (comparison operator)
.methods
.capitalize
<=
class
18. (regular expression)any non-whitespace character
arguments
S
range
A
19. method to determine if an object is an even number
||
.between?
.even?
ARGV
20. the process of deciding which sections of code to execute based on conditions
D
s
flow control
yield
21. (regular expression)any digit
.chop
d
!=
.even?
22. a definition of a concept in an object oriented language.
d
strip
class
.scan()
23. a string method that substitutes THE FIRST occurrence of a string within a string
.each
.sub
<=>
<=
24. array method that removes last item from an array
&&
.methods
.even?
.pop
25. string method that determines if a string ends with a defined string
.map
^
operators
end_with?
26. (regular expression)any letter or digit or underscore
@
S
$
w
27. (regular expression)any nonletter or nondigit or nonunderscore.
<<
<=
yield
W
28. an array method that
.downcase
%arg
.each
.split
29. passes value into block of code and assigns it the label of "x"
iterator
flow control
|x|
<=>
30. (regular expression)any space or tab or newline or whitespace
s
arguments
start_with?
==
31. pushes a new item onto the end of an array.
.each
S
<<
.even?
32. symbol for a global variable which can be called from anywhere in an application.
constant
w
$
^
33. runs a proc that has been stored to a variable
iterator
call
.between?
S
34. a string method that changes last character to next alphabetical character
.even?
.next
if?then:else
#{}
35. tells ruby a value to pass while iterating a block of code
S
iterator
@@
yield
36. (regular expression)any letter or digit or underscore
.gsub
.upcase
method
w
37. returns ASCII value of x
?x
.pop
.sort
d
38. a string method that capitalizes first character
method
.map
.capitalize
operators
39. assigns a key to a hash value
A
=>
.select
$:.
40. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
string
constant
strip
.even?
41. a string method that changes last character to next alphabetical character
<
object orientation
.next
code blocks
42. a collection of objects or values with associated keys
string
.next
W
hash
43. array assignment oprator
.split
?x
class
<<
44. class inheritance operator.
|x|
&&
<
flow control
45. sets a text delimiter
|x|
%arg
?x
.include?()
46. string method that "cleans" extra spaces from strings
strip
Z
A
.pop
47. (regular expression)any space or tab or newline or whitespace
interpolation
s
code blocks
.chop
48. mixing expressions into strings
#{}
d
interpolation
<
49. method that tells if an argument is within the limits of two numbers
.between?
object
call
iterator
50. allows for classes to relate to each other in a hierarchy
inheritance
W
&&
.between?