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 number with a decimal point such as 1.0 or 3.1
.swapcase
float
parameters
iterator
2. (regular expression)any nondigit
D
.each
==
.gsub
3. pushes a new item onto the end of an array.
.pop
.index
<<
?x
4. methods that step through lists element by element (like each or upto or times etc)
method
iterator
d
.scan()
5. defines an instance variable which only exists within the object it was created in.
<<
.index
@
^
6. a string method that capitalizes first character
S
=>
.swapcase
.capitalize
7. class inheritance operator.
arguments
.map
<
^
8. (regular expression)any non-whitespace character
?x
A
.gsub
S
9. sets a single character text delimiter for multi-line strings
%q
.split
end_with?
ARGV
10. the ternary operator if?then:else
.index
if?then:else
library
local variable
11. returns ASCII value of x
method
?x
break if
float
12. used in an expression to manipulate objects
W
operators
!=
.sub
13. (regular expression)any letter or digit or underscore
!
hash
w
&&
14. passes value into block of code and assigns it the label of "x"
|x|
%arg
inheritance
.even?
15. method that tells an argument's place value within an array
d
constant
.index
.even?
16. (regular expression)any non-whitespace character
S
float
.sort
not and or
17. the process of deciding which sections of code to execute based on conditions
.sub
<=
flow control
.methods
18. defines array of multiple elements seperated by a space
.capitalize
<<
w
%w{}
19. (regular expression)any nonletter or nondigit or nonunderscore.
<<
break if
W
not and or
20. interpolation operator
#{}
$
.downcase
break if
21. array method that removes last item from an array
regular expressions
.downcase
struct
.pop
22. runs a proc that has been stored to a variable
.sub
call
.include?()
@
23. a string method that uncapitalizes first character
.downcase
library
@
range
24. a string method that changes last character to next alphabetical character
variable
<=>
constant
.next
25. less than or equal to (comparison operator)
<=
start_with?
.pop
iterator
26. tells you all methods that an object may invoke.
.methods
.downcase
flow control
method
27. array method that selects particular items from an array
object
.sub
.gsub
.select
28. a special array made from arguments that were added to the command line at start up.
%w{}
.next
.gsub
ARGV
29. a string method that makes string all caps.
w
object
!=
.upcase
30. defines a class variable. Can be used anywhere within a class
>=
Z
strip
@@
31. a string method that substituition. Requires 2 arguments.
>=
A
.upcase
.sub
32. (regular expression)anchor for the start of a string
.sort
.even?
A
code blocks
33. assigns a key to a hash value
.each
w
.index
=>
34. array method that removes last item from an array
regular expressions
array
<<
.pop
35. a fixed value that begins with a capital letter such as Pi.
constant
interpolation
==
.index
36. method that tells if an argument is within the limits of two numbers
.between?
Z
@@
^
37. (regular expression)any letter or digit or underscore
yield
<
.gsub
w
38. interpolation operator
variable
d
.each
#{}
39. passes value into block of code and assigns it the label of "x"
|x|
variable
iterator
.downcase
40. Boolean OR operator
||
A
parameters
|x|
41. conditionally stops a loop
>=
class
break if
not and or
42. (regular expression)any nonletter or nondigit or nonunderscore.
^
==
W
S
43. a definition of a concept in an object oriented language.
==
.match
class
code blocks
44. a variable that lists the directories where Ruby will look for libraries
$:.
^
variable
ARGV
45. a regular method that is the anchor for the beggining of a line
constant
^
$:.
flow control
46. a way to describe patterns in text
.gsub
.next
regular expressions
w
47. the representation of data from a start to end point
S
range
%w{}
.sort
48. an array method that
w
not and or
.each
!=
49. a string method that reverses capitalization
interpolation
object
.sort
.swapcase
50. method that sorts items alphabetically
.sort
.each
.scan()
call
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