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. method that tells if an argument is within the limits of two numbers
.even?
.between?
range
.scan()
2. methods that step through lists element by element (like each or upto or times etc)
<=>
break if
s
iterator
3. a placeholder for a single object that may be a number or string or list or instance of a defined class
s
variable
integer
object
4. (regular expression)anchor for the start of a string
.sort
.pop
A
iterator
5. 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
library
start_with?
<<
.match
6. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
float
kernel
<=>
.between?
7. array method that removes last item from an array
!
.pop
object
.between?
8. symbol for a global variable which can be called from anywhere in an application.
.chop
class
.scan()
$
9. Boolean not and or (lower preference)
^
.chop
not and or
operators
10. method to determine if an object is an even number
.sort
.even?
interpolation
library
11. interpolation operator
.chop
.each
#{}
yield
12. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
>=
constant
.each
<=
13. an array method that
parameters
.swapcase
.each
yield
14. (regular expression)any nonletter or nondigit or nonunderscore.
W
method
.downcase
$
15. the ternary operator if?then:else
!
float
array
if?then:else
16. a collection of objects with a defined order
array
end_with?
kernel
.map
17. a string method that changes last character to next alphabetical character
inheritance
kernel
.next
float
18. array method that removes last item from an array
.pop
.downcase
code blocks
array
19. interpolation operator
.even?
<
#{}
start_with?
20. an array method that returns TRUE or FALSE if the array contains specified item
.even?
>=
<<
.include?()
21. a string method that reverses capitalization
.swapcase
Z
yield
.gsub
22. a special array made from arguments that were added to the command line at start up.
$
ARGV
.sub
||
23. an array method that returns TRUE or FALSE if the array contains specified item
.include?()
code blocks
.pop
call
24. (regular expression)any nondigit
.next
D
.map
$
25. a set of code within a class or object
method
.next
%
.each
26. method that tells an argument's place value within an array
$
d
.index
.swapcase
27. sets a text delimiter
range
.swapcase
%arg
S
28. the representation of data from a start to end point
^
range
code blocks
D
29. a way to describe patterns in text
regular expressions
s
.scan()
end_with?
30. array method that selects particular items from an array
constant
.select
.sub
.downcase
31. a special class that holds attributes and data but no methods.
.map
%arg
.each
struct
32. a string method that substitutes ALL occurrences of a string with another.
S
@@
.gsub
call
33. a string method that changes last character to next alphabetical character
.next
?x
method
A
34. variable that can be used only where it is defined within an application
if?then:else
%q
local variable
variable
35. tells ruby a value to pass while iterating a block of code
.map
arguments
.sort
yield
36. a whole number
Z
integer
range
.include?()
37. defines an instance variable which only exists within the object it was created in.
arguments
@
d
#{}
38. passes value into block of code and assigns it the label of "x"
?x
s
|x|
!
39. a fixed value that begins with a capital letter such as Pi.
constant
method
^
D
40. 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.
.gsub
%
.capitalize
code blocks
41. data passed to methods in parenthesis after a method's name.
parameters
!
.upcase
?x
42. a string method that capitalizes first character
.include?()
.capitalize
.pop
<=>
43. a collection of objects or values with associated keys
.sub
.chop
constant
hash
44. array assignment oprator
<<
.scan()
arguments
.select
45. method that tells an argument's place value within an array
integer
.sort
.index
.capitalize
46. assigns a key to a hash value
operators
<<
=>
.even?
47. (regular expression)any nondigit
D
!
interpolation
.next
48. a number with a decimal point such as 1.0 or 3.1
integer
inheritance
not and or
float
49. operator for "Boolean not"
array
!
.map
w
50. array method that transforms the contents of an array according to a specified set of rules
.map
$
.downcase
object
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