Deck 11: Ruby on Rails Web Development
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/51
Play
Full screen (f)
Deck 11: Ruby on Rails Web Development
1
The official Ruby on Rails website is located at http://www.myruby.com .
False
2
When Ruby on Rails is installed on your computer, so is a small web server called WEBrick, which you use as your Ruby on Rails development environment.
True
3
SQLite is a low cost database management system, which you can download and install for a small fee.
False
4
Most application code is contained in its controllers.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
5
Models are implemented via Ruby on Rails' Active Record library.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
6
By default, all Ruby on Rails applications are configured to work with the SQLite database management system.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
7
One limitation of Ruby on Rails applications is that they are limited to a small subset of supported database management systems.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
8
The easiest way to download and install SQLite is to use RubyGems.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
9
The MVC architecture facilitates DRY programming and keeps the programming logic that controls application execution separate from the programming logic that manages the presentation of data.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
10
By applying the principle of DRY, Ruby on Rails applications are created based on a set of assumptions and common standards, that result in general-purpose applications that can be further customized as necessary.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
11
Ruby on Rails uses models to process data and manage the flow of data communication with web browsers.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
12
The Ruby on Rails framework is a collection of programs that provides everything needed to develop database-driven web applications.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
13
By applying the principle of Convention Over Configuration, Ruby on Rails applications are designed based on the idea that you should avoid writing the same program code more than once within a web application.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
14
Views are responsible for performing data validation.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
15
Views are programs responsible for an application's user interface, presenting data in a predefined format.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
16
Active Record provides Ruby on Rails with database independence, allowing it to work with all major database management systems.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
17
Ruby on Rails includes a collection of scripts used to automate the creation of web-based applications.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
18
The Action View library defines presentation templates that are used in displaying data.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
19
Models are Ruby on Rails programs that manage the relationship between controllers and the application's database
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
20
One limitation of Ruby on Rails is that you cannot customize its applications after they have been created.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
21
____ are programs responsible for an application's user interface, presenting data in a predefined format.
A) Views
B) Models
C) Controllers
D) Records
A) Views
B) Models
C) Controllers
D) Records
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
22
You can customize a Ruby on Rails application in a variety of ways, including which of the following?
A) Edit your application's HTML code
B) Modify the CSS style sheets to alter the application's appearance
C) Change the application's database management system
D) All of the above
A) Edit your application's HTML code
B) Modify the CSS style sheets to alter the application's appearance
C) Change the application's database management system
D) All of the above
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
23
The MVC architecture facilitates the ____ principle by keeping the programming logic that controls application execution separate from the programming logic that manages the presentation of data.
A) Convention over Configuration
B) Restful
C) DRY
D) Stateful
A) Convention over Configuration
B) Restful
C) DRY
D) Stateful
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
24
The easiest way to install Ruby on Rails on a computer running Windows is through the fxri-interactive Ruby and Help Console.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
25
Railties provide a framework for adding email services to Ruby on Rails applications, enabling applications to send email and receive email.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
26
____ tie together different models and views, processing application input and output.
A) Models
B) Views
C) Controllers
D) Records
A) Models
B) Views
C) Controllers
D) Records
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
27
____ provides a framework for adding email services to Ruby on Rails applications, enabling applications to send email and receive email.
A) Action Mailer
B) Active Resource
C) Railties
D) Active Support
A) Action Mailer
B) Active Resource
C) Railties
D) Active Support
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
28
Ruby on Rails is built on a MVC architecture, which organizes your applications into which three primary components?
A) Models, views, and controllers
B) Models, views and containers
C) Makers, views, and controllers
D) Markers, view, and containers
A) Models, views, and controllers
B) Models, views and containers
C) Makers, views, and controllers
D) Markers, view, and containers
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
29
____ are Ruby on Rails programs that manage the relationship between controllers and the application's database.
A) Views
B) Models
C) Controllers
D) Records
A) Views
B) Models
C) Controllers
D) Records
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
30
To work with Ruby on Rails, you need a basic understanding of which of the following?
A) HTML
B) Cascading style sheets (CSS)
C) Database management systems
D) All of the above
A) HTML
B) Cascading style sheets (CSS)
C) Database management systems
D) All of the above
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
31
The data displayed by a view is updated based on the actions of ____.
A) Views
B) Models
C) Controllers
D) Records
A) Views
B) Models
C) Controllers
D) Records
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
32
Active Resource manages the connections between application objects and database tables, mapping local application objects to web resources.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
33
Railties provide the program code (help scripts) that actually creates Ruby on Rails applications and ties everything together.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
34
Which of the following commands can be used to keep Ruby on Rails up to date?
A) gem update
B) gem update rails
C) gem get rails
D) rubygem update rails
A) gem update
B) gem update rails
C) gem get rails
D) rubygem update rails
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
35
Which of the following commands is used to start the WEBrick web server?
A) script/start
B) start/script
C) script/server
D) script/webrick
A) script/start
B) start/script
C) script/server
D) script/webrick
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
36
Controllers are Ruby on Rails programs that manage the relationship between models and an application's database.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
37
Views are implemented via Ruby on Rails' ____ library, which defines presentation templates that are used in displaying data.
A) Action View
B) Active Record
C) Action Controller
D) Action Record
A) Action View
B) Active Record
C) Action Controller
D) Action Record
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
38
Which of the following URLs can be used to access your computer's locally installed web server?
A) http://127.0.0.1:3000
B) http://127.0.0.0:2000
C) http://127.1.1.1.3000
D) http://127.0.0.1:1000
A) http://127.0.0.1:3000
B) http://127.0.0.0:2000
C) http://127.1.1.1.3000
D) http://127.0.0.1:1000
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
39
____ Manages the connections between application objects and database tables, mapping local application objects to web resources.
A) Action Mailer
B) Active Resource
C) Railties
D) Active Support
A) Action Mailer
B) Active Resource
C) Railties
D) Active Support
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
40
____ help maintain a separation between an application's programming logic and the presentation of its data.
A) Views
B) Models
C) Controllers
D) Records
A) Views
B) Models
C) Controllers
D) Records
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
41
To determine if Ruby Gems is installed, issue the command ____.
A) gem -i
B) gem -v
C) gem -r
D) RubyGems -v
A) gem -i
B) gem -v
C) gem -r
D) RubyGems -v
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
42
The WEBrick web server monitors which of the following ports?
A) 1000
B) 2000
C) 3000
D) 5000
A) 1000
B) 2000
C) 3000
D) 5000
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
43
____ is a library of classes used by Ruby on Rails programs.
A) Action Mailer
B) Active Resource
C) Railties
D) Active Support
A) Action Mailer
B) Active Resource
C) Railties
D) Active Support
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
44
Ruby on Rails works with which of the following types of database management systems?
A) SQLite
B) MySQL
C) Oracle
D) All of the above
A) SQLite
B) MySQL
C) Oracle
D) All of the above
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
45
____ is a Ruby script that creates a Ruby on Rails project, including its directory structure and its core application files.
A) rails
B) reals
C) RubyGems
D) gems
A) rails
B) reals
C) RubyGems
D) gems
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
46
____ is a small database management system that is automatically installed on Mac OS X 10.5 machines.
A) MySql
B) Oracle
C) DB2
D) SQLite
A) MySql
B) Oracle
C) DB2
D) SQLite
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
47
Ruby on Rails can work with any web server. In addition, it comes with its own web server named ____.
A) WEBrick
B) Webserver
C) Apache
D) WEBsvr
A) WEBrick
B) Webserver
C) Apache
D) WEBsvr
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
48
____ provides the program code (help scripts) that actually creates Ruby on Rails applications and ties everything together.
A) Action Mailer
B) Active Resource
C) Railties
D) Active Support
A) Action Mailer
B) Active Resource
C) Railties
D) Active Support
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
49
____ automates the download and installation of Ruby on Rails programs and related development software tools.
A) RubyInstaller
B) Gems
C) RubyGems
D) RubyMgr
A) RubyInstaller
B) Gems
C) RubyGems
D) RubyMgr
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
50
____ is a database management system, used by Ruby on Rails by default, which is easily installed using RubyGems.
A) SQLite
B) MySQL
C) Oracle
D) All of the above
A) SQLite
B) MySQL
C) Oracle
D) All of the above
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
51
Almost every Ruby on Rails application involves the storage and retrieval of information using a ____.
A) web server
B) database
C) log file
D) data file
A) web server
B) database
C) log file
D) data file
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck