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. a number with a decimal point such as 1.0 or 3.1
.methods
float
class
>=
2. comparison operator for "equal to"
=>
.scan()
==
Z
3. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
.select
<=>
Z
.scan()
4. (regular expression)any non-whitespace character
code blocks
.match
S
D
5. string method that "cleans" extra spaces from strings
hash
library
code blocks
strip
6. array method that removes last item from an array
.each
if?then:else
?x
.pop
7. (regular expression)any space or tab or newline or whitespace
==
.next
.even?
s
8. returns ASCII value of x
!=
?x
code blocks
W
9. (regular expression)any nondigit
class
.map
D
call
10. methods that step through lists element by element (like each or upto or times etc)
<
>=
inheritance
iterator
11. mixing expressions into strings
interpolation
.map
struct
.scan()
12. defines an instance variable which only exists within the object it was created in.
@
class
%
||
13. interpolation operator
#{}
.map
.next
Z
14. data passed to methods in parenthesis after a method's name.
yield
arguments
.methods
library
15. a regular method that is the anchor for the end of a line
constant
S
.gsub
$
16. defines a class variable. Can be used anywhere within a class
.chop
@@
constant
ARGV
17. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
kernel
A
.gsub
.capitalize
18. an array method that
flow control
s
.each
^
19. passes value into block of code and assigns it the label of "x"
|x|
.methods
.chop
.split
20. conditionally stops a loop
.downcase
>=
break if
A
21. an array method that returns TRUE or FALSE if the array contains specified item
struct
W
object orientation
.include?()
22. a string method that scans object for arguments - uses regular expressions.
D
.scan()
.sort
>=
23. a collection of objects with a defined order
kernel
if?then:else
A
array
24. Boolean OR operator
?x
operators
S
||
25. a string method that changes last character to next alphabetical character
.methods
.next
.sub
parameters
26. an array method that
|x|
.upcase
integer
.each
27. a variable that lists the directories where Ruby will look for libraries
.include?()
.pop
!
$:.
28. method that tells an argument's place value within an array
strip
.index
.chop
array
29. variable that can be used only where it is defined within an application
.include?()
local variable
s
.between?
30. allows for classes to relate to each other in a hierarchy
inheritance
w
array
strip
31. a string method that makes string all caps.
.between?
.upcase
variable
==
32. (regular expression)any letter or digit or underscore
^
w
.swapcase
.methods
33. a string method that capitalizes first character
.capitalize
#{}
class
W
34. method that tells if an argument is within the limits of two numbers
iterator
flow control
.between?
||
35. a single instance of a class.
!
@
object
call
36. tells you all methods that an object may invoke.
D
break if
A
.methods
37. comparison operator for "not equal to"
!=
<<
variable
operators
38. using classes and objects to make real-world concepts in programming.
object orientation
.gsub
.pop
array
39. array method that removes last item from an array
Z
<<
.gsub
.pop
40. sets a single character text delimiter for multi-line strings
%q
.pop
struct
|x|
41. a fixed value that begins with a capital letter such as Pi.
W
constant
range
|x|
42. returns ASCII value of x
%q
.gsub
S
?x
43. array assignment oprator
=>
not and or
.pop
<<
44. a special class that holds attributes and data but no methods.
end_with?
.methods
struct
D
45. (regular expression)any letter or digit or underscore
w
==
!=
.next
46. (regular expression)any nonletter or nondigit or nonunderscore.
.include?()
S
W
<
47. a string method that substitutes ALL occurrences of a string with another.
local variable
$
$
.gsub
48. the representation of data from a start to end point
.downcase
.sub
range
call
49. a definition of a concept in an object oriented language.
call
if?then:else
class
.capitalize
50. tells ruby a value to pass while iterating a block of code
break if
yield
.each
interpolation
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