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. the remainder operator
.pop
%
.upcase
.map
2. a string method that removes last character
.chop
<
.even?
code blocks
3. methods that step through lists element by element (like each or upto or times etc)
iterator
||
.match
!=
4. a string method that substitutes ALL occurrences of a string with another.
yield
parameters
.gsub
||
5. a way to describe patterns in text
.map
D
%arg
regular expressions
6. tells you all methods that an object may invoke.
struct
.methods
code blocks
#{}
7. (regular expression)any letter or digit or underscore
w
hash
array
$
8. returns ASCII value of x
^
variable
?x
w
9. (regular expression)any nondigit
^
.each
D
.capitalize
10. sets a single character text delimiter for multi-line strings
Z
%q
string
D
11. Boolean OR operator
<=
start_with?
||
break if
12. less than or equal to (comparison operator)
<=
.each
array
.swapcase
13. comparison operator for "not equal to"
.match
arguments
!=
library
14. a special array made from arguments that were added to the command line at start up.
.split
!
ARGV
.index
15. a string method that splits a string into an array
s
.even?
W
.split
16. a string method that scans object for arguments - uses regular expressions.
.capitalize
!
code blocks
.scan()
17. method that tells if an argument is within the limits of two numbers
.gsub
.between?
||
!=
18. allows for classes to relate to each other in a hierarchy
Z
inheritance
A
.sub
19. (regular expression)any nondigit
.downcase
D
array
.scan()
20. a string method that uncapitalizes first character
.between?
break if
.downcase
d
21. the process of deciding which sections of code to execute based on conditions
ARGV
w
.scan()
flow control
22. a regular method that is the anchor for the beggining of a line
^
$
.upcase
constant
23. 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
kernel
.match
.sub
.include?()
24. an array method that returns TRUE or FALSE if the array contains specified item
.between?
.include?()
!
S
25. method to determine if an object is an even number
%q
.even?
@
.capitalize
26. a collection of objects with a defined order
arguments
object
array
%arg
27. a definition of a concept in an object oriented language.
string
Z
class
.upcase
28. assigns a key to a hash value
string
=>
.index
s
29. string method that determines if a string ends with a defined string
end_with?
start_with?
.sub
?x
30. mixing expressions into strings
.methods
.split
!
interpolation
31. returns ASCII value of x
==
$
?x
S
32. Boolean AND operator
arguments
struct
d
&&
33. symbol for a global variable which can be called from anywhere in an application.
interpolation
&&
$
#{}
34. used in an expression to manipulate objects
.between?
object orientation
|x|
operators
35. (regular expression)anchor for the end of a string
A
flow control
regular expressions
Z
36. a string method that substitutes ALL occurrences of a string with another.
.gsub
.split
.methods
kernel
37. variable that can be used only where it is defined within an application
constant
local variable
|x|
yield
38. a collection of characters such as "Hello world!"
$
!=
string
local variable
39. a string method that removes last character
.chop
interpolation
$
Z
40. Boolean not and or (lower preference)
arguments
<=
not and or
iterator
41. (regular expression)any space or tab or newline or whitespace
=>
s
A
W
42. string method that "cleans" extra spaces from strings
%arg
strip
.pop
constant
43. tells you all methods that an object may invoke.
.methods
.gsub
.scan()
.map
44. a string method that capitalizes first character
not and or
$:.
.capitalize
.methods
45. (regular expression)anchor for the start of a string
>=
end_with?
A
.swapcase
46. data passed to methods in parenthesis after a method's name.
>=
.methods
arguments
@
47. array method that transforms the contents of an array according to a specified set of rules
.even?
.upcase
.map
iterator
48. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
kernel
d
float
operators
49. class inheritance operator.
<
yield
$
.include?()
50. array assignment oprator
.select
object
.each
<<
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