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 sorts items alphabetically
#{}
.sort
.include?()
break if
2. method that tells an argument's place value within an array
.index
inheritance
.select
integer
3. a string method that changes last character to next alphabetical character
d
%q
.next
=>
4. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
class
class
<=>
.sub
5. method that tells if an argument is within the limits of two numbers
.scan()
break if
code blocks
.between?
6. the remainder operator
end_with?
float
inheritance
%
7. operator for "Boolean not"
!
yield
.index
?x
8. variable that can be used only where it is defined within an application
.upcase
$
#{}
local variable
9. the ternary operator if?then:else
if?then:else
&&
.include?()
!=
10. a string method that makes string all caps.
.pop
Z
d
.upcase
11. comparison operator for "not equal to"
<<
.each
operators
!=
12. a placeholder for a single object that may be a number or string or list or instance of a defined class
strip
.sub
variable
iterator
13. a string method that changes last character to next alphabetical character
.each
==
.next
constant
14. (regular expression)any non-whitespace character
Z
array
S
A
15. a special array made from arguments that were added to the command line at start up.
code blocks
ARGV
^
operators
16. a string method that scans object for arguments - uses regular expressions.
.scan()
$:.
.even?
.even?
17. Boolean OR operator
<<
.chop
||
$:.
18. Boolean AND operator
operators
==
array
&&
19. method that tells if an argument is within the limits of two numbers
class
array
.between?
.select
20. using classes and objects to make real-world concepts in programming.
>=
=>
.capitalize
object orientation
21. string method that "cleans" extra spaces from strings
d
.map
.split
strip
22. (regular expression)any non-whitespace character
.next
.index
S
.index
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
.sort
.match
@@
integer
24. operator for "Boolean not"
.capitalize
.chop
object orientation
!
25. used in an expression to manipulate objects
operators
.map
$:.
<
26. (regular expression)any nonletter or nondigit or nonunderscore.
.swapcase
start_with?
call
W
27. array method that removes last item from an array
$
object orientation
.pop
constant
28. a set of code within a class or object
float
.sort
method
.capitalize
29. a string method that scans object for arguments - uses regular expressions.
.scan()
.swapcase
.downcase
<=
30. tells you all methods that an object may invoke.
local variable
variable
.methods
integer
31. (regular expression)any nondigit
.upcase
|x|
D
<=>
32. string method that determines if a string starts with a defined string
==
start_with?
end_with?
?x
33. (regular expression)anchor for the start of a string
method
.sub
A
.index
34. a collection of objects or values with associated keys
local variable
<<
string
hash
35. array method that transforms the contents of an array according to a specified set of rules
code blocks
.map
library
local variable
36. (regular expression)anchor for the end of a string
Z
d
&&
arguments
37. assigns a key to a hash value
=>
.downcase
.methods
strip
38. a string method that splits a string into an array
.split
w
.methods
.select
39. a collection of objects with a defined order
inheritance
variable
array
.capitalize
40. allows for classes to relate to each other in a hierarchy
.index
S
inheritance
object
41. runs a proc that has been stored to a variable
w
call
A
.gsub
42. passes value into block of code and assigns it the label of "x"
strip
S
parameters
|x|
43. a string method that substitutes THE FIRST occurrence of a string within a string
local variable
.sub
.between?
@@
44. sets a text delimiter
.sub
!
%arg
w
45. methods that step through lists element by element (like each or upto or times etc)
object orientation
iterator
A
.sub
46. a module of classes and or functions
.each
w
range
library
47. a regular method that is the anchor for the beggining of a line
^
<<
regular expressions
.gsub
48. passes value into block of code and assigns it the label of "x"
yield
!
.select
|x|
49. a number with a decimal point such as 1.0 or 3.1
.between?
float
code blocks
A
50. greater than or equal to (comparison operator)
constant
.pop
kernel
>=
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