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. runs a proc that has been stored to a variable
$
call
interpolation
strip
2. (regular expression)anchor for the start of a string
range
class
.select
A
3. a whole number
.match
end_with?
#{}
integer
4. a string method that uncapitalizes first character
inheritance
.downcase
parameters
%
5. method that tells an argument's place value within an array
.chop
.index
code blocks
range
6. used in an expression to manipulate objects
code blocks
strip
operators
.scan()
7. assigns a key to a hash value
D
.capitalize
array
=>
8. (regular expression)any nondigit
.upcase
object
D
operators
9. method that sorts items alphabetically
break if
.sort
end_with?
$:.
10. a special array made from arguments that were added to the command line at start up.
A
arguments
!
ARGV
11. greater than or equal to (comparison operator)
.capitalize
>=
variable
code blocks
12. a set of code within a class or object
d
@@
.capitalize
method
13. a placeholder for a single object that may be a number or string or list or instance of a defined class
.downcase
variable
.capitalize
call
14. returns ASCII value of x
class
?x
.select
variable
15. method to determine if an object is an even number
flow control
arguments
local variable
.even?
16. (regular expression)any letter or digit or underscore
w
.methods
call
.include?()
17. a variable that lists the directories where Ruby will look for libraries
$:.
%arg
.swapcase
class
18. method that tells if an argument is within the limits of two numbers
.between?
w
array
<<
19. (regular expression)any space or tab or newline or whitespace
method
s
.map
%q
20. conditionally stops a loop
float
break if
||
regular expressions
21. class inheritance operator.
.sort
<
.downcase
D
22. array method that transforms the contents of an array according to a specified set of rules
.capitalize
.map
w
library
23. a regular method that is the anchor for the beggining of a line
^
.map
.chop
.sub
24. a regular method that is the anchor for the end of a line
struct
$:.
.gsub
$
25. comparison operator for "not equal to"
=>
.chop
!=
.capitalize
26. the ternary operator if?then:else
Z
|x|
if?then:else
d
27. data passed to methods in parenthesis after a method's name.
ARGV
object
constant
arguments
28. (regular expression)any space or tab or newline or whitespace
.scan()
D
d
s
29. symbol for a global variable which can be called from anywhere in an application.
?x
$
!
.between?
30. a string method that capitalizes first character
.capitalize
|x|
!=
method
31. passes value into block of code and assigns it the label of "x"
|x|
<<
inheritance
.downcase
32. a special class that holds attributes and data but no methods.
.map
array
ARGV
struct
33. string method that determines if a string starts with a defined string
start_with?
if?then:else
.chop
A
34. a string method that removes last character
.include?()
.chop
!
<<
35. a string method that reverses capitalization
.swapcase
<=>
array
?x
36. the representation of data from a start to end point
^
range
#{}
kernel
37. array method that removes last item from an array
.pop
.sub
%
%q
38. string method that "cleans" extra spaces from strings
strip
==
end_with?
operators
39. a regular method that is the anchor for the beggining of a line
W
.upcase
^
$
40. array method that selects particular items from an array
&&
W
.select
.map
41. a way to describe patterns in text
method
regular expressions
interpolation
w
42. (regular expression)any nondigit
.even?
D
break if
?x
43. Boolean not and or (lower preference)
.scan()
not and or
$
^
44. an array method that
.each
.scan()
.next
.scan()
45. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
local variable
kernel
parameters
.index
46. Boolean OR operator
.gsub
.next
||
<<
47. a string method that splits a string into an array
#{}
.split
%w{}
.sort
48. defines a class variable. Can be used anywhere within a class
@@
.split
#{}
flow control
49. the process of deciding which sections of code to execute based on conditions
.map
flow control
constant
start_with?
50. a string method that capitalizes first character
.scan()
.capitalize
w
.pop
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