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. passes value into block of code and assigns it the label of "x"
operators
break if
S
|x|
2. a string method that uncapitalizes first character
.gsub
.downcase
<<
string
3. allows for classes to relate to each other in a hierarchy
.include?()
$
inheritance
.methods
4. array method that transforms the contents of an array according to a specified set of rules
parameters
inheritance
.pop
.map
5. a single instance of a class.
?x
object
float
#{}
6. conditionally stops a loop
break if
inheritance
S
hash
7. a string method that removes last character
.sub
.chop
A
?x
8. pushes a new item onto the end of an array.
.scan()
<<
?x
.chop
9. (regular expression)anchor for the start of a string
<<
A
.sort
s
10. data passed to methods in parenthesis after a method's name.
arguments
class
object orientation
call
11. array method that transforms the contents of an array according to a specified set of rules
.map
yield
.each
.upcase
12. a string method that splits a string into an array
.split
ARGV
not and or
.next
13. (regular expression)anchor for the end of a string
?x
A
!
Z
14. method that tells an argument's place value within an array
arguments
.index
constant
operators
15. comparison operator for "not equal to"
!=
%w{}
local variable
.include?()
16. a string method that substitutes ALL occurrences of a string with another.
<
.gsub
method
.include?()
17. using classes and objects to make real-world concepts in programming.
D
.next
object orientation
<<
18. a string method that scans object for arguments - uses regular expressions.
arguments
w
float
.scan()
19. an array method that returns TRUE or FALSE if the array contains specified item
=>
D
.include?()
method
20. array assignment oprator
<<
A
<=>
.even?
21. returns ASCII value of x
end_with?
?x
<=
.include?()
22. operator for "Boolean not"
!
w
operators
S
23. string method that determines if a string starts with a defined string
end_with?
start_with?
S
regular expressions
24. tells you all methods that an object may invoke.
.methods
@@
.match
library
25. a module of classes and or functions
.index
.between?
.each
library
26. a string method that changes last character to next alphabetical character
.gsub
.next
w
iterator
27. the process of deciding which sections of code to execute based on conditions
.scan()
flow control
W
<<
28. a number with a decimal point such as 1.0 or 3.1
.include?()
float
|x|
iterator
29. a special array made from arguments that were added to the command line at start up.
parameters
ARGV
flow control
.select
30. (regular expression)anchor for the end of a string
method
Z
integer
.scan()
31. method that tells if an argument is within the limits of two numbers
?x
.between?
.upcase
=>
32. sets a single character text delimiter for multi-line strings
inheritance
%q
.downcase
<
33. (regular expression)any digit
d
integer
==
.downcase
34. a fixed value that begins with a capital letter such as Pi.
library
s
constant
method
35. assigns a key to a hash value
&&
=>
.scan()
constant
36. a string method that substitutes THE FIRST occurrence of a string within a string
@@
.pop
$
.sub
37. a set of code within a class or object
array
.include?()
method
interpolation
38. 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
#{}
.match
variable
%w{}
39. (regular expression)anchor for the start of a string
d
end_with?
A
inheritance
40. a string method that reverses capitalization
.scan()
.include?()
.swapcase
.select
41. symbol for a global variable which can be called from anywhere in an application.
<=
%arg
W
$
42. a string method that scans object for arguments - uses regular expressions.
.scan()
!
ARGV
float
43. (regular expression)any letter or digit or underscore
$
w
inheritance
^
44. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
>=
D
^
constant
45. defines array of multiple elements seperated by a space
%w{}
range
variable
local variable
46. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
kernel
operators
.chop
end_with?
47. a special class that holds attributes and data but no methods.
^
W
struct
.downcase
48. the remainder operator
%
$
<
|x|
49. Boolean not and or (lower preference)
.upcase
s
not and or
#{}
50. a collection of objects or values with associated keys
.upcase
hash
@@
ARGV
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