Ruby on Rails Web Development Basics
Fundamental concepts of Ruby on Rails framework including MVC architecture, CRUD operations, Rails commands, and web application development principles.
Questions
Which of the following command runs the migrations for your rails project
- rake db:migrations
- rake db:migrate
- rake db:migrates
- rake db:migrate project
Which of the following is a built-in server for rails?
- Webmagick
- Webwidget
- Webrick
- Weblaunch
Rails is an open source framework
- True
- False
Every model class in a rails application inherits from which of the following base class?
- ActiveRecord
- ApplicationRecord
- ActiveSummary
- ActiveModel
What architecture does Rails follow?
- 1-Tier Architecture
- MVC Architecture
- 2-Tier Architecture
- 3-Tier Architecture
CRUD stands for
- Create Read Update Delete
- Create Request Update Delete
- Create Read Update Drop
- Create Redo Update Direct
Ruby is a
- Compiled and Procedural Programming Language
- Interpreted and Object Oriented Programming Language
- Interpreted and Procedural Programming language
- Compiled and Object Oriented Programming Language
Which of the following is valid rails syntax for scaffolding?
- ruby script/generate scaffold recipe [name,type] => [string,string]
- ruby scaffold recipe [name,type] => [string,string]
- ruby script/generate scaffold recipe name=string type=string
- ruby script/generate scaffold recipe name:string type:string
Rails has agile web development methods
- True
- False
The request from the web browser is handled by which of the following component?
- Model only
- View and Controller
- Controller only
- Medel and Controller
Which of the following commands creates a rails application?
- rails create app sampleapplication
- rails sampleapplication
- rails create sampleapplication
- rails app sampleapplication
Which of the following is a rails file for changing the database configurations?
- database.xml
- database.rb
- database.yml
- db_config.xml
What is the framework used in rails?
- ActionControl
- ActionWeb
- ActionPack
- ActionClass
ActionMailer serves as the JS library
- True
- False
List the steps of Importing an image into your page?
- Image -> Colour -> Insert
- Image -> Drawing Object -> Insert
- Insert -> Drawing Object -> Image
- Image -> Insert -> Drawing Object