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. (regular expression)any letter or digit or underscore
w
.map
.capitalize
array
2. (regular expression)any letter or digit or underscore
.map
.each
$:.
w
3. a fixed value that begins with a capital letter such as Pi.
#{}
constant
class
.chop
4. method that tells an argument's place value within an array
Z
D
=>
.index
5. string method that "cleans" extra spaces from strings
<
strip
.scan()
=>
6. comparison operator for "not equal to"
!=
.gsub
D
constant
7. a module of classes and or functions
library
.scan()
.pop
||
8. array method that removes last item from an array
W
!=
.pop
S
9. Boolean not and or (lower preference)
object orientation
not and or
constant
integer
10. (regular expression)any digit
d
<
arguments
.include?()
11. assigns a key to a hash value
%w{}
=>
$:.
string
12. a string method that reverses capitalization
.swapcase
.capitalize
@
arguments
13. a string method that substitutes ALL occurrences of a string with another.
.gsub
s
@@
constant
14. defines array of multiple elements seperated by a space
%w{}
<=
arguments
constant
15. mixing expressions into strings
.index
range
W
interpolation
16. passes value into block of code and assigns it the label of "x"
break if
.select
s
|x|
17. a string method that scans object for arguments - uses regular expressions.
.include?()
.index
<
.scan()
18. Boolean AND operator
D
%q
if?then:else
&&
19. a string method that changes last character to next alphabetical character
regular expressions
arguments
%w{}
.next
20. comparison operator for "not equal to"
!=
flow control
.index
ARGV
21. operator for "Boolean not"
interpolation
|x|
array
!
22. (regular expression)anchor for the end of a string
.index
A
S
Z
23. interpolation operator
<=
#{}
strip
.capitalize
24. tells ruby a value to pass while iterating a block of code
!=
yield
||
.between?
25. array method that selects particular items from an array
W
?x
<<
.select
26. defines a class variable. Can be used anywhere within a class
@@
!
.between?
call
27. defines an instance variable which only exists within the object it was created in.
s
@
!=
.gsub
28. the representation of data from a start to end point
break if
local variable
class
range
29. a collection of objects or values with associated keys
strip
%w{}
.chop
hash
30. a set of code within a class or object
.sort
%w{}
.split
method
31. Boolean OR operator
$
||
<
<=
32. array assignment oprator
local variable
Z
<<
D
33. a variable that lists the directories where Ruby will look for libraries
float
>=
$:.
%w{}
34. conditionally stops a loop
<
object orientation
break if
$
35. a special array made from arguments that were added to the command line at start up.
A
integer
ARGV
.chop
36. variable that can be used only where it is defined within an application
local variable
class
inheritance
%arg
37. tells you all methods that an object may invoke.
.sub
S
.sort
.methods
38. string method that determines if a string ends with a defined string
object
end_with?
.select
interpolation
39. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
object
.next
|x|
constant
40. tells you all methods that an object may invoke.
.methods
||
>=
&&
41. a regular method that is the anchor for the beggining of a line
inheritance
.upcase
<<
^
42. sets a text delimiter
!
end_with?
%arg
Z
43. array method that transforms the contents of an array according to a specified set of rules
.map
not and or
strip
.sub
44. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
%q
.each
kernel
.swapcase
45. a special class that holds attributes and data but no methods.
class
.sub
^
struct
46. a string method that splits a string into an array
.each
struct
ARGV
.split
47. method that sorts items alphabetically
.sort
kernel
.between?
.even?
48. a string method that changes last character to next alphabetical character
.map
?x
.next
method
49. (regular expression)anchor for the start of a string
A
%q
ARGV
library
50. a string method that makes string all caps.
struct
.pop
.index
.upcase
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