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 tells an argument's place value within an array
regular expressions
.sub
.index
<=>
2. a definition of a concept in an object oriented language.
@@
.capitalize
.index
class
3. a regular method that is the anchor for the beggining of a line
range
.next
<
^
4. a string method that changes last character to next alphabetical character
not and or
.next
$:.
.even?
5. (regular expression)any nondigit
inheritance
#{}
>=
D
6. a string method that scans object for arguments - uses regular expressions.
.scan()
A
arguments
==
7. passes value into block of code and assigns it the label of "x"
|x|
class
integer
flow control
8. comparison operator for "not equal to"
code blocks
!=
.capitalize
!
9. 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
.index
$
object
.match
10. method that sorts items alphabetically
.each
.swapcase
.sort
break if
11. symbol for a global variable which can be called from anywhere in an application.
inheritance
$
if?then:else
Z
12. a way to describe patterns in text
<=
struct
.downcase
regular expressions
13. a number with a decimal point such as 1.0 or 3.1
float
.each
$:.
.index
14. (regular expression)any non-whitespace character
.methods
.capitalize
%arg
S
15. (regular expression)any space or tab or newline or whitespace
.capitalize
.each
w
s
16. (regular expression)any space or tab or newline or whitespace
%arg
d
.even?
s
17. conditionally stops a loop
s
break if
W
s
18. a string method that substitutes ALL occurrences of a string with another.
.next
start_with?
.gsub
.include?()
19. interpolation operator
#{}
Z
$
==
20. (regular expression)any letter or digit or underscore
inheritance
constant
w
.next
21. an array method that returns TRUE or FALSE if the array contains specified item
end_with?
!=
integer
.include?()
22. a string method that removes last character
class
.each
.downcase
.chop
23. a string method that reverses capitalization
integer
.swapcase
code blocks
>=
24. Boolean AND operator
.upcase
library
.scan()
&&
25. a string method that uncapitalizes first character
interpolation
.downcase
s
object orientation
26. a placeholder for a single object that may be a number or string or list or instance of a defined class
call
variable
.capitalize
if?then:else
27. (regular expression)any nondigit
if?then:else
$
D
s
28. method that tells if an argument is within the limits of two numbers
if?then:else
.between?
array
!=
29. data passed to methods in parenthesis after a method's name.
kernel
parameters
.next
Z
30. the remainder operator
%
if?then:else
code blocks
.each
31. defines a class variable. Can be used anywhere within a class
.swapcase
@@
A
S
32. a section of code with no discrete name which is not a method by itself that can be called upon and can receive an argument.
.even?
code blocks
%w{}
&&
33. a collection of objects with a defined order
.chop
array
<=>
.capitalize
34. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
!
array
kernel
d
35. tells ruby a value to pass while iterating a block of code
local variable
yield
.gsub
d
36. returns ASCII value of x
.next
ARGV
?x
kernel
37. mixing expressions into strings
.pop
.between?
.sort
interpolation
38. (regular expression)any non-whitespace character
W
Z
.upcase
S
39. (regular expression)anchor for the start of a string
#{}
strip
%q
A
40. (regular expression)any letter or digit or underscore
.methods
.index
s
w
41. operator for "Boolean not"
!
s
#{}
d
42. string method that determines if a string ends with a defined string
s
@@
.upcase
end_with?
43. a string method that uncapitalizes first character
.sub
.downcase
!
constant
44. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
<=
<=>
constant
.gsub
45. a string method that makes string all caps.
code blocks
.upcase
range
class
46. the process of deciding which sections of code to execute based on conditions
.methods
flow control
s
A
47. class inheritance operator.
.chop
<
.map
>=
48. used in an expression to manipulate objects
.between?
.scan()
D
operators
49. runs a proc that has been stored to a variable
variable
.sort
call
==
50. method that tells an argument's place value within an array
d
.split
<
.index
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