|
Que No. 1 ) What is the default database used in a new Rails application?
A.) PostgreSQL
B.) SQLite
C.) MySQL
D.) MongoDB
|
Que No. 2 ) Which Rails command generates a new model?
A.) rails create model
B.) generate scaffold
C.) rails generate model
D.) new model
|
Que No. 3 ) In Rails, what is the purpose of a model?
A.) To define the application's routes
B.) To define the structure and behavior of the data
C.) To manage user authentication
D.) To define controller actions
|
Que No. 4 ) What is a "migration" in Rails?
A.) A software update
B.) A change in the user interface
C.) A script for managing changes to the database schema
D.) A security feature
|
Que No. 5 ) In Rails, what is the purpose of a "controller"?
A.) To define the structure and behavior of the data
B.) To define the application's routes
C.) To manage user authentication
D.) To generate HTML templates
|
Que No. 6 ) Which Rails command generates a new controller?
A.) rails create controller
B.) generate scaffold
C.) rails generate controller
D.) new controller
|
Que No. 7 ) What is the purpose of a "view" in Rails?
A.) To define the structure and behavior of the data
B.) To define the application's routes
C.) To generate HTML templates for displaying data
D.) To manage user authentication
|
Que No. 8 ) In Rails, what is the primary file extension for view templates?
A.) .html
B.) .rb
C.) .yml
D.) .erb
|
Que No. 9 ) What does "RESTful" mean in the context of Rails?
A.) Representational State Transfer
B.) Responsive and Stateful
C.) Random and Stateless
D.) Reusable and Structured
|
Que No. 10 ) Which HTTP methods are commonly used in RESTful routes in Rails?
A.) GET, POST, DELETE, PUT
B.) READ, CREATE, UPDATE, DELETE
C.) SELECT, INSERT, DELETE, MODIFY
D.) FETCH, ADD, REMOVE, CHANGE
|