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. comparison operator for "not equal to"
!=
not and or
.pop
.gsub
2. a section of code with no discrete name which is not a method by itself that can be called upon and can receive an argument.
local variable
code blocks
method
class
3. a way to describe patterns in text
regular expressions
$:.
s
%q
4. comparison operator for "equal to"
.pop
==
iterator
local variable
5. a string method that substitutes ALL occurrences of a string with another.
call
.gsub
#{}
!=
6. symbol for a global variable which can be called from anywhere in an application.
S
$
.downcase
.chop
7. passes value into block of code and assigns it the label of "x"
integer
|x|
<=>
.downcase
8. array method that transforms the contents of an array according to a specified set of rules
.include?()
s
.map
.select
9. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
constant
D
.map
<<
10. (regular expression)any letter or digit or underscore
operators
w
S
.methods
11. a string method that uncapitalizes first character
<=>
.between?
.select
.downcase
12. a string method that reverses capitalization
%
.swapcase
yield
.pop
13. the representation of data from a start to end point
range
.sort
.include?()
ARGV
14. allows for classes to relate to each other in a hierarchy
s
inheritance
$
interpolation
15. string method that "cleans" extra spaces from strings
|x|
strip
kernel
<=>
16. a string method that capitalizes first character
D
%w{}
.capitalize
.index
17. variable that can be used only where it is defined within an application
interpolation
%w{}
local variable
object orientation
18. conditionally stops a loop
local variable
string
variable
break if
19. a string method that splits a string into an array
library
.split
.each
.each
20. operator for "Boolean not"
.gsub
^
.scan()
!
21. (regular expression)any nondigit
s
!=
D
strip
22. array method that transforms the contents of an array according to a specified set of rules
.swapcase
.include?()
^
.map
23. method that tells an argument's place value within an array
%w{}
.pop
.index
.sort
24. (regular expression)any nonletter or nondigit or nonunderscore.
constant
W
<
range
25. a special class that holds attributes and data but no methods.
struct
<<
Z
.capitalize
26. a string method that substitutes THE FIRST occurrence of a string within a string
D
start_with?
.sub
.methods
27. a regular method that is the anchor for the end of a line
.sub
?x
%q
$
28. a fixed value that begins with a capital letter such as Pi.
.include?()
constant
.swapcase
?x
29. method to determine if an object is an even number
.chop
@
.even?
.gsub
30. sets a single character text delimiter for multi-line strings
$:.
.capitalize
<
%q
31. a regular method that is the anchor for the beggining of a line
?x
.map
regular expressions
^
32. an array method that returns TRUE or FALSE if the array contains specified item
!
.include?()
.next
W
33. a string method that removes last character
.map
<<
.between?
.chop
34. (regular expression)anchor for the start of a string
!=
range
S
A
35. the ternary operator if?then:else
|x|
d
object
if?then:else
36. (regular expression)anchor for the start of a string
.split
.methods
A
call
37. returns ASCII value of x
.each
?x
=>
strip
38. a string method that scans object for arguments - uses regular expressions.
call
S
.index
.scan()
39. Boolean AND operator
hash
#{}
code blocks
&&
40. a string method that substituition. Requires 2 arguments.
|x|
.chop
@@
.sub
41. a string method that removes last character
$
.methods
.sub
.chop
42. (regular expression)any non-whitespace character
.downcase
.next
.pop
S
43. the remainder operator
%arg
%
.map
D
44. using classes and objects to make real-world concepts in programming.
%w{}
yield
object orientation
.each
45. a string method that changes last character to next alphabetical character
.next
?x
constant
.capitalize
46. (regular expression)any nonletter or nondigit or nonunderscore.
W
|x|
local variable
Z
47. tells ruby a value to pass while iterating a block of code
.map
yield
==
.chop
48. a module of classes and or functions
.index
^
library
.map
49. a variable that lists the directories where Ruby will look for libraries
class
$:.
code blocks
w
50. method that tells if an argument is within the limits of two numbers
.capitalize
==
.between?
if?then:else