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. class inheritance operator.
.include?()
<<
.chop
<
2. Boolean not and or (lower preference)
float
arguments
not and or
inheritance
3. an array method that returns TRUE or FALSE if the array contains specified item
array
.include?()
object orientation
start_with?
4. a module of classes and or functions
.even?
iterator
call
library
5. method that tells an argument's place value within an array
$
.index
range
.gsub
6. (regular expression)any space or tab or newline or whitespace
.capitalize
W
s
call
7. less than or equal to (comparison operator)
<=
parameters
D
.scan()
8. comparison operator for "not equal to"
==
!=
|x|
ARGV
9. (regular expression)any non-whitespace character
S
interpolation
.each
.map
10. (regular expression)any non-whitespace character
$:.
S
.sub
A
11. defines array of multiple elements seperated by a space
w
%w{}
W
<<
12. the remainder operator
$
%
?x
.next
13. a string method that scans object for arguments - uses regular expressions.
.map
hash
.scan()
array
14. an array method that
.each
D
.gsub
%
15. a definition of a concept in an object oriented language.
S
flow control
A
class
16. methods that step through lists element by element (like each or upto or times etc)
iterator
.each
.match
variable
17. (regular expression)anchor for the end of a string
ARGV
W
Z
.even?
18. (regular expression)any nondigit
D
.downcase
method
<
19. a string method that capitalizes first character
D
.capitalize
.index
variable
20. (regular expression)anchor for the start of a string
d
.between?
.chop
A
21. a string method that substitutes THE FIRST occurrence of a string within a string
.sub
.even?
.gsub
!
22. array method that removes last item from an array
<=>
.each
.pop
.index
23. (regular expression)any letter or digit or underscore
.pop
w
if?then:else
object
24. an array method that
|x|
.map
d
.each
25. method to determine if an object is an even number
.even?
yield
s
@
26. a regular method that is the anchor for the beggining of a line
<<
S
.index
^
27. method that tells if an argument is within the limits of two numbers
#{}
<=>
.between?
Z
28. a placeholder for a single object that may be a number or string or list or instance of a defined class
variable
D
d
.gsub
29. a string method that changes last character to next alphabetical character
.even?
object orientation
.next
%q
30. an array method that returns TRUE or FALSE if the array contains specified item
.upcase
range
W
.include?()
31. a collection of objects or values with associated keys
!
hash
S
.chop
32. (regular expression)anchor for the start of a string
A
.chop
.capitalize
?x
33. symbol for a global variable which can be called from anywhere in an application.
$
.capitalize
%q
array
34. Boolean OR operator
.swapcase
call
||
#{}
35. a string method that removes last character
@
!
.chop
#{}
36. a variable that lists the directories where Ruby will look for libraries
.downcase
$:.
.scan()
.swapcase
37. (regular expression)any letter or digit or underscore
.upcase
w
<=
D
38. assigns a key to a hash value
.gsub
=>
end_with?
.scan()
39. a regular method that is the anchor for the beggining of a line
strip
^
?x
class
40. a definition of a concept in an object oriented language.
||
regular expressions
.swapcase
class
41. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
<=>
d
==
.each
42. a fixed value that begins with a capital letter such as Pi.
=>
.gsub
.chop
constant
43. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
constant
$
S
%q
44. using classes and objects to make real-world concepts in programming.
regular expressions
object orientation
D
.between?
45. tells you all methods that an object may invoke.
.methods
object orientation
.index
if?then:else
46. a string method that splits a string into an array
library
<=>
>=
.split
47. a string method that uncapitalizes first character
.downcase
.even?
.capitalize
@@
48. 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
integer
!
.map
.match
49. greater than or equal to (comparison operator)
S
array
#{}
>=
50. method that sorts items alphabetically
inheritance
local variable
.chop
.sort
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