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. array method that transforms the contents of an array according to a specified set of rules
A
break if
.map
.downcase
2. a collection of objects with a defined order
.map
array
>=
^
3. data passed to methods in parenthesis after a method's name.
library
W
parameters
%
4. array method that removes last item from an array
=>
$
.pop
<
5. runs a proc that has been stored to a variable
class
call
array
d
6. passes value into block of code and assigns it the label of "x"
.chop
<=
s
|x|
7. (regular expression)any letter or digit or underscore
w
.capitalize
!=
.gsub
8. (regular expression)any non-whitespace character
<<
%
S
^
9. method that tells an argument's place value within an array
.index
.match
W
method
10. defines an instance variable which only exists within the object it was created in.
@
D
#{}
%arg
11. 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.
.methods
iterator
.each
code blocks
12. Boolean OR operator
||
object orientation
if?then:else
^
13. a string method that reverses capitalization
D
.between?
.each
.swapcase
14. an array method that returns TRUE or FALSE if the array contains specified item
!=
.include?()
.upcase
.downcase
15. a variable that lists the directories where Ruby will look for libraries
yield
$:.
.capitalize
if?then:else
16. method that sorts items alphabetically
|x|
^
.scan()
.sort
17. (regular expression)any non-whitespace character
S
$
.methods
yield
18. variable that can be used only where it is defined within an application
string
.capitalize
local variable
!=
19. method to determine if an object is an even number
interpolation
.downcase
.even?
.chop
20. a regular method that is the anchor for the end of a line
if?then:else
$
end_with?
yield
21. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
.each
constant
arguments
$
22. (regular expression)anchor for the end of a string
kernel
.upcase
Z
==
23. comparison operator for "equal to"
==
not and or
break if
regular expressions
24. a string method that substitutes ALL occurrences of a string with another.
.gsub
arguments
struct
Z
25. less than or equal to (comparison operator)
<=
kernel
.between?
.index
26. interpolation operator
parameters
.downcase
@@
#{}
27. the remainder operator
>=
?x
%
@@
28. operator for "Boolean not"
>=
!
d
hash
29. string method that determines if a string starts with a defined string
library
iterator
.index
start_with?
30. a single instance of a class.
object
.pop
.capitalize
.scan()
31. (regular expression)any space or tab or newline or whitespace
?x
s
.between?
@
32. a string method that removes last character
#{}
.methods
.chop
struct
33. comparison operator for "not equal to"
W
!=
.downcase
.methods
34. a set of code within a class or object
yield
strip
#{}
method
35. a regular method that is the anchor for the beggining of a line
s
end_with?
^
Z
36. a string method that changes last character to next alphabetical character
%
?x
.next
.even?
37. data passed to methods in parenthesis after a method's name.
S
W
D
arguments
38. a placeholder for a single object that may be a number or string or list or instance of a defined class
variable
<<
?x
w
39. symbol for a global variable which can be called from anywhere in an application.
$
@
interpolation
not and or
40. an array method that
$
.each
yield
A
41. a collection of objects or values with associated keys
float
hash
%
%w{}
42. returns ASCII value of x
?x
method
.between?
||
43. a special class that holds attributes and data but no methods.
^
.chop
struct
if?then:else
44. tells ruby a value to pass while iterating a block of code
library
yield
<
arguments
45. (regular expression)any nonletter or nondigit or nonunderscore.
@@
W
if?then:else
!
46. sets a text delimiter
%
%arg
ARGV
operators
47. (regular expression)any digit
d
.gsub
ARGV
parameters
48. a number with a decimal point such as 1.0 or 3.1
class
%arg
^
float
49. a string method that scans object for arguments - uses regular expressions.
D
strip
.between?
.scan()
50. allows for classes to relate to each other in a hierarchy
end_with?
w
inheritance
array
Sorry!:) No result found.
Can you answer 50 questions in 15 minutes?
Let me suggest you:
Browse all subjects
Browse all tests
Most popular tests
Major Subjects
Tests & Exams
AP
CLEP
DSST
GRE
SAT
GMAT
Certifications
CISSP go to https://www.isc2.org/
PMP
ITIL
RHCE
MCTS
More...
IT Skills
Android Programming
Data Modeling
Objective C Programming
Basic Python Programming
Adobe Illustrator
More...
Business Skills
Advertising Techniques
Business Accounting Basics
Business Strategy
Human Resource Management
Marketing Basics
More...
Soft Skills
Body Language
People Skills
Public Speaking
Persuasion
Job Hunting And Resumes
More...
Vocabulary
GRE Vocab
SAT Vocab
TOEFL Essential Vocab
Basic English Words For All
Global Words You Should Know
Business English
More...
Languages
AP German Vocab
AP Latin Vocab
SAT Subject Test: French
Italian Survival
Norwegian Survival
More...
Engineering
Audio Engineering
Computer Science Engineering
Aerospace Engineering
Chemical Engineering
Structural Engineering
More...
Health Sciences
Basic Nursing Skills
Health Science Language Fundamentals
Veterinary Technology Medical Language
Cardiology
Clinical Surgery
More...
English
Grammar Fundamentals
Literary And Rhetorical Vocab
Elements Of Style Vocab
Introduction To English Major
Complete Advanced Sentences
Literature
Homonyms
More...
Math
Algebra Formulas
Basic Arithmetic: Measurements
Metric Conversions
Geometric Properties
Important Math Facts
Number Sense Vocab
Business Math
More...
Other Major Subjects
Science
Economics
History
Law
Performing-arts
Cooking
Logic & Reasoning
Trivia
Browse all subjects
Browse all tests
Most popular tests