NEW
Font size
WorksheetsRuby Quiz 01 - Sections 1-4
Total questions: 10
Worksheet time: 10mins
Can you do math in Ruby?
Yes
No
Strings...
store(s) their information in a sequence, a list of stored information.
are actions.
is a place to save stuff you might need again, as well as give that stuff a name.
is a list(s) of stored information.
An Array...
store(s) their information in a sequence, a list of stored information.
are actions.
is a place to save stuff you might need again, as well as give that stuff a name.
is a list(s) of stored information.
Methods...
store(s) their information in a sequence, a list of stored information.
are actions.
is a place to save stuff you might need again, as well as give that stuff a name.
is a list(s) of stored information.
A Variable...
store(s) their information in a sequence, a list of stored information.
are actions.
is a place to save stuff you might need again, as well as give that stuff a name.
is a list(s) of stored information.
Could this be a variable in Ruby?
fish = [1, 2, red, blue]
Yes
No
What do square brackets look like?
{ }
( )
[ ]
< >
Which of these are curly brackets?
{ }
( )
[ ]
< >
What are blocks in Ruby?
They let you get a lot more done in a single command.
Tiny, efficiently reusable code words with a colon: :splendid.
Chunks of code which can be tacked on to many of Ruby's methods
What is chaining in Ruby?
Something that lets you get a lot more done in a single command.
Tiny, efficiently reusable code words with a colon: :splendid.
Chunks of code which can be tacked on to many of Ruby's methods
