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.

15 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following command runs the migrations for your rails project

  1. rake db:migrations
  2. rake db:migrate
  3. rake db:migrates
  4. rake db:migrate project
Question 2 Multiple Choice (Single Answer)

Which of the following is a built-in server for rails?

  1. Webmagick
  2. Webwidget
  3. Webrick
  4. Weblaunch
Question 3 True/False

Rails is an open source framework

  1. True
  2. False
Question 4 Multiple Choice (Single Answer)

Every model class in a rails application inherits from which of the following base class?

  1. ActiveRecord
  2. ApplicationRecord
  3. ActiveSummary
  4. ActiveModel
Question 5 Multiple Choice (Single Answer)

What architecture does Rails follow?

  1. 1-Tier Architecture
  2. MVC Architecture
  3. 2-Tier Architecture
  4. 3-Tier Architecture
Question 6 Multiple Choice (Single Answer)

CRUD stands for

  1. Create Read Update Delete
  2. Create Request Update Delete
  3. Create Read Update Drop
  4. Create Redo Update Direct
Question 7 Multiple Choice (Single Answer)

Ruby is a

  1. Compiled and Procedural Programming Language
  2. Interpreted and Object Oriented Programming Language
  3. Interpreted and Procedural Programming language
  4. Compiled and Object Oriented Programming Language
Question 8 Multiple Choice (Single Answer)

Which of the following is valid rails syntax for scaffolding?

  1. ruby script/generate scaffold recipe [name,type] => [string,string]
  2. ruby scaffold recipe [name,type] => [string,string]
  3. ruby script/generate scaffold recipe name=string type=string
  4. ruby script/generate scaffold recipe name:string type:string
Question 9 True/False

Rails has agile web development methods

  1. True
  2. False
Question 10 Multiple Choice (Single Answer)

The request from the web browser is handled by which of the following component?

  1. Model only
  2. View and Controller
  3. Controller only
  4. Medel and Controller
Question 11 Multiple Choice (Single Answer)

Which of the following commands creates a rails application?

  1. rails create app sampleapplication
  2. rails sampleapplication
  3. rails create sampleapplication
  4. rails app sampleapplication
Question 12 Multiple Choice (Single Answer)

Which of the following is a rails file for changing the database configurations?

  1. database.xml
  2. database.rb
  3. database.yml
  4. db_config.xml
Question 13 Multiple Choice (Single Answer)

What is the framework used in rails?

  1. ActionControl
  2. ActionWeb
  3. ActionPack
  4. ActionClass
Question 14 True/False

ActionMailer serves as the JS library

  1. True
  2. False
Question 15 Multiple Choice (Single Answer)

List the steps of Importing an image into your page?

  1. Image -> Colour -> Insert
  2. Image -> Drawing Object -> Insert
  3. Insert -> Drawing Object -> Image
  4. Image -> Insert -> Drawing Object