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. a collection of objects with a defined order
<=
d
array
.each
2. (regular expression)any digit
d
S
#{}
.each
3. a string method that substitutes ALL occurrences of a string with another.
.downcase
strip
.include?()
.gsub
4. a regular method that is the anchor for the end of a line
not and or
.capitalize
.each
$
5. Boolean AND operator
code blocks
&&
Z
d
6. a collection of objects or values with associated keys
@@
<=
#{}
hash
7. sets a single character text delimiter for multi-line strings
s
parameters
%q
.downcase
8. a string method that substitutes ALL occurrences of a string with another.
.gsub
<
range
.chop
9. method to determine if an object is an even number
Z
.even?
<<
.scan()
10. (regular expression)any nonletter or nondigit or nonunderscore.
.upcase
inheritance
method
W
11. variable that can be used only where it is defined within an application
iterator
.index
not and or
local variable
12. an array method that returns TRUE or FALSE if the array contains specified item
Z
.between?
.include?()
W
13. 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.
<
code blocks
A
.capitalize
14. greater than or equal to (comparison operator)
interpolation
.index
>=
.even?
15. Boolean not and or (lower preference)
.swapcase
code blocks
not and or
A
16. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
kernel
A
%w{}
.even?
17. a definition of a concept in an object oriented language.
class
object
.include?()
array
18. a string method that removes last character
.chop
.pop
||
.even?
19. a special class that holds attributes and data but no methods.
.between?
parameters
struct
W
20. method that tells an argument's place value within an array
ARGV
|x|
.index
?x
21. a string method that scans object for arguments - uses regular expressions.
A
A
$
.scan()
22. a collection of characters such as "Hello world!"
$:.
float
Z
string
23. a string method that scans object for arguments - uses regular expressions.
.upcase
start_with?
.scan()
.sort
24. a string method that capitalizes first character
.capitalize
.match
.each
start_with?
25. array method that transforms the contents of an array according to a specified set of rules
.map
=>
!
.chop
26. a string method that uncapitalizes first character
object
.downcase
<<
regular expressions
27. a regular method that is the anchor for the beggining of a line
.gsub
||
^
string
28. the ternary operator if?then:else
flow control
.next
if?then:else
%
29. the process of deciding which sections of code to execute based on conditions
@
break if
flow control
inheritance
30. tells ruby a value to pass while iterating a block of code
variable
$
flow control
yield
31. tells you all methods that an object may invoke.
<<
constant
.methods
^
32. a module of classes and or functions
.map
Z
==
library
33. the representation of data from a start to end point
#{}
range
A
.even?
34. a set of code within a class or object
method
==
.index
@
35. a string method that makes string all caps.
.upcase
strip
#{}
%w{}
36. the remainder operator
%
start_with?
arguments
@
37. Boolean OR operator
<
||
D
.sub
38. allows for classes to relate to each other in a hierarchy
.match
array
s
inheritance
39. array method that removes last item from an array
end_with?
|x|
.pop
#{}
40. (regular expression)anchor for the start of a string
<<
end_with?
A
not and or
41. array assignment oprator
.select
<<
.next
.methods
42. passes value into block of code and assigns it the label of "x"
struct
|x|
>=
class
43. a string method that removes last character
$
!
.pop
.chop
44. interpolation operator
<=>
.capitalize
.even?
#{}
45. comparison operator for "not equal to"
!=
<=
s
.between?
46. 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
%q
.match
.map
s
47. an array method that
.each
?x
.sort
==
48. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
.index
struct
constant
.next
49. method to determine if an object is an even number
.between?
regular expressions
%q
.even?
50. method that tells an argument's place value within an array
.index
.chop
regular expressions
.sub
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