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. interpolation operator
$
%
.sub
#{}
2. a collection of characters such as "Hello world!"
&&
.upcase
string
ARGV
3. a string method that substitutes ALL occurrences of a string with another.
D
@@
.split
.gsub
4. a string method that changes last character to next alphabetical character
@@
||
.next
.pop
5. (regular expression)any space or tab or newline or whitespace
==
.split
s
!=
6. an array method that
.swapcase
.chop
.each
constant
7. method that tells an argument's place value within an array
.index
break if
class
.downcase
8. allows for classes to relate to each other in a hierarchy
$:.
inheritance
.map
.select
9. a fixed value that begins with a capital letter such as Pi.
constant
operators
break if
kernel
10. a number with a decimal point such as 1.0 or 3.1
float
string
A
s
11. defines array of multiple elements seperated by a space
A
<<
<
%w{}
12. a collection of objects or values with associated keys
if?then:else
W
hash
$
13. a placeholder for a single object that may be a number or string or list or instance of a defined class
>=
#{}
<<
variable
14. an array method that
iterator
.each
library
.upcase
15. defines a class variable. Can be used anywhere within a class
|x|
s
$
@@
16. a variable that lists the directories where Ruby will look for libraries
@
$:.
interpolation
|x|
17. a string method that uncapitalizes first character
object orientation
local variable
.downcase
@
18. 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.
constant
end_with?
.include?()
code blocks
19. interpolation operator
end_with?
.sort
.swapcase
#{}
20. a string method that scans object for arguments - uses regular expressions.
.sub
.scan()
w
.sub
21. tells ruby a value to pass while iterating a block of code
iterator
.scan()
.chop
yield
22. method to determine if an object is an even number
#{}
.even?
struct
start_with?
23. using classes and objects to make real-world concepts in programming.
object orientation
array
>=
interpolation
24. array method that transforms the contents of an array according to a specified set of rules
d
class
.sub
.map
25. the representation of data from a start to end point
range
.match
strip
^
26. used in an expression to manipulate objects
<<
strip
operators
#{}
27. a definition of a concept in an object oriented language.
.pop
class
.next
$:.
28. (regular expression)anchor for the end of a string
break if
Z
call
.sub
29. comparison operator for "not equal to"
d
<
.sub
!=
30. a string method that changes last character to next alphabetical character
S
.next
end_with?
if?then:else
31. a collection of objects with a defined order
.map
array
S
A
32. (regular expression)any non-whitespace character
class
S
local variable
not and or
33. a regular method that is the anchor for the beggining of a line
|x|
s
^
constant
34. a string method that substitutes THE FIRST occurrence of a string within a string
.sub
strip
.chop
ARGV
35. a string method that capitalizes first character
.capitalize
method
<
W
36. an array method that returns TRUE or FALSE if the array contains specified item
%q
.chop
.index
.include?()
37. array assignment oprator
<=
$:.
&&
<<
38. (regular expression)anchor for the start of a string
if?then:else
.even?
A
class
39. symbol for a global variable which can be called from anywhere in an application.
break if
$
!
operators
40. Boolean OR operator
Z
.each
||
%w{}
41. a way to describe patterns in text
regular expressions
operators
.index
method
42. a string method that substituition. Requires 2 arguments.
!
code blocks
s
.sub
43. a string method that removes last character
call
.chop
.include?()
.next
44. passes value into block of code and assigns it the label of "x"
|x|
.chop
if?then:else
D
45. method that tells if an argument is within the limits of two numbers
<
.between?
integer
.pop
46. runs a proc that has been stored to a variable
|x|
integer
call
constant
47. mixing expressions into strings
kernel
string
interpolation
parameters
48. comparison operator for "not equal to"
.sort
!=
operators
.split
49. a special class that holds attributes and data but no methods.
.sort
.include?()
S
struct
50. variable that can be used only where it is defined within an application
|x|
local variable
string
%
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