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. (regular expression)any non-whitespace character
range
S
.methods
iterator
2. methods that step through lists element by element (like each or upto or times etc)
iterator
yield
method
.index
3. (regular expression)anchor for the start of a string
class
A
string
.scan()
4. string method that "cleans" extra spaces from strings
&&
arguments
?x
strip
5. operator for "Boolean not"
D
.between?
S
!
6. a whole number
integer
Z
object
.methods
7. a collection of objects with a defined order
array
.methods
<=>
.chop
8. used in an expression to manipulate objects
operators
.even?
.index
.between?
9. comparison operator for "not equal to"
.map
.match
end_with?
!=
10. an array method that
D
.capitalize
.each
&&
11. (regular expression)anchor for the end of a string
D
float
Z
if?then:else
12. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
if?then:else
constant
.between?
!=
13. a string method that uncapitalizes first character
start_with?
.downcase
.sub
<=>
14. a placeholder for a single object that may be a number or string or list or instance of a defined class
.scan()
variable
d
.include?()
15. pushes a new item onto the end of an array.
<<
.between?
W
?x
16. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
struct
kernel
|x|
%q
17. array method that removes last item from an array
.downcase
&&
.pop
.match
18. method that tells if an argument is within the limits of two numbers
call
.between?
.include?()
D
19. (regular expression)any nonletter or nondigit or nonunderscore.
W
.index
.between?
.each
20. method that tells an argument's place value within an array
.index
<<
.methods
W
21. defines array of multiple elements seperated by a space
variable
<
.select
%w{}
22. a regular method that is the anchor for the end of a line
array
!
$
<
23. a variable that lists the directories where Ruby will look for libraries
integer
.select
object orientation
$:.
24. a string method that makes string all caps.
D
%arg
A
.upcase
25. (regular expression)any space or tab or newline or whitespace
.even?
.scan()
s
library
26. 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.
code blocks
%w{}
#{}
<=
27. Boolean OR operator
.index
||
.pop
.each
28. a string method that substitutes THE FIRST occurrence of a string within a string
.sub
local variable
inheritance
%q
29. returns ASCII value of x
==
?x
object orientation
%arg
30. the ternary operator if?then:else
if?then:else
@
class
constant
31. (regular expression)any digit
start_with?
ARGV
not and or
d
32. a regular method that is the anchor for the beggining of a line
S
.include?()
hash
^
33. a number with a decimal point such as 1.0 or 3.1
Z
.upcase
float
$:.
34. returns ASCII value of x
?x
.scan()
.sort
local variable
35. tells ruby a value to pass while iterating a block of code
.index
.methods
yield
float
36. the representation of data from a start to end point
range
.between?
|x|
A
37. conditionally stops a loop
.upcase
W
.methods
break if
38. (regular expression)any letter or digit or underscore
d
w
variable
.each
39. a string method that uncapitalizes first character
struct
.downcase
==
kernel
40. method to determine if an object is an even number
>=
.even?
|x|
S
41. a module of classes and or functions
library
.chop
method
.capitalize
42. method that sorts items alphabetically
.sort
!=
.include?()
Z
43. 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
array
Z
S
.match
44. a string method that scans object for arguments - uses regular expressions.
hash
.map
s
.scan()
45. comparison operator for "not equal to"
<=>
$
$:.
!=
46. a string method that changes last character to next alphabetical character
arguments
flow control
^
.next
47. passes value into block of code and assigns it the label of "x"
|x|
^
!
.sub
48. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
code blocks
.pop
break if
<=>
49. tells you all methods that an object may invoke.
.index
||
.methods
range
50. (regular expression)any digit
w
%
.scan()
d
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