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. allows for classes to relate to each other in a hierarchy
S
.methods
inheritance
method
2. variable that can be used only where it is defined within an application
local variable
kernel
.between?
operators
3. array method that transforms the contents of an array according to a specified set of rules
<
A
.map
inheritance
4. a number with a decimal point such as 1.0 or 3.1
!
#{}
range
float
5. a string method that changes last character to next alphabetical character
<=>
.between?
w
.next
6. operator for "Boolean not"
d
.split
<<
!
7. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
constant
range
.select
^
8. defines an instance variable which only exists within the object it was created in.
.capitalize
.each
.scan()
@
9. string method that "cleans" extra spaces from strings
.even?
#{}
^
strip
10. the ternary operator if?then:else
#{}
$
variable
if?then:else
11. comparison operator for "equal to"
==
regular expressions
.sub
|x|
12. less than or equal to (comparison operator)
|x|
<=
!
||
13. tells ruby a value to pass while iterating a block of code
.capitalize
W
yield
method
14. (regular expression)any space or tab or newline or whitespace
>=
@@
if?then:else
s
15. a placeholder for a single object that may be a number or string or list or instance of a defined class
.map
s
variable
interpolation
16. a string method that splits a string into an array
S
.split
operators
.sort
17. data passed to methods in parenthesis after a method's name.
ARGV
.index
d
arguments
18. (regular expression)any digit
.next
?x
d
constant
19. a fixed value that begins with a capital letter such as Pi.
constant
?x
integer
d
20. mixing expressions into strings
||
.include?()
interpolation
.pop
21. a regular method that is the anchor for the end of a line
.swapcase
.upcase
$
integer
22. string method that determines if a string starts with a defined string
class
start_with?
inheritance
.sub
23. (regular expression)any non-whitespace character
.sub
float
strip
S
24. a single instance of a class.
.capitalize
object
.include?()
library
25. returns ASCII value of x
ARGV
?x
D
$
26. a collection of objects with a defined order
!
parameters
end_with?
array
27. pushes a new item onto the end of an array.
W
<<
kernel
if?then:else
28. passes value into block of code and assigns it the label of "x"
constant
variable
iterator
|x|
29. used in an expression to manipulate objects
.index
^
operators
.between?
30. a string method that capitalizes first character
integer
.capitalize
array
regular expressions
31. assigns a key to a hash value
iterator
.index
=>
.index
32. method that sorts items alphabetically
!=
>=
d
.sort
33. methods that step through lists element by element (like each or upto or times etc)
.even?
iterator
.each
@
34. symbol for a global variable which can be called from anywhere in an application.
flow control
.index
$
class
35. a string method that capitalizes first character
.capitalize
d
class
constant
36. method to determine if an object is an even number
||
method
.even?
.map
37. a string method that uncapitalizes first character
.downcase
>=
.capitalize
code blocks
38. (regular expression)anchor for the end of a string
.index
.next
.gsub
Z
39. a definition of a concept in an object oriented language.
W
class
$
.between?
40. a way to describe patterns in text
&&
regular expressions
.chop
<
41. conditionally stops a loop
break if
.map
.next
$:.
42. array assignment oprator
<<
.match
%
%w{}
43. Boolean AND operator
%w{}
&&
operators
.scan()
44. greater than or equal to (comparison operator)
.index
%
>=
hash
45. class inheritance operator.
.capitalize
<
w
=>
46. a module of classes and or functions
constant
library
.select
<=>
47. a string method that reverses capitalization
.swapcase
.methods
.map
.next
48. (regular expression)anchor for the end of a string
constant
%arg
Z
.select
49. a variable that lists the directories where Ruby will look for libraries
struct
$:.
arguments
.sort
50. (regular expression)any letter or digit or underscore
.include?()
range
w
<<
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