CSE 3901 FINAL – RAILS FINAL TEST
2026 QUESTIONS WITH CORRECT
ANSWERS GRADED A+
◍ Git Repository.
Answer: working tree + store + index
◍ Git Working Tree.
Answer: project itself Ordinary directory with files & subdirectories
◍ Git Store.
Answer: history of project
◍ Git Index.
Answer: virtual snapshot Gateway for moving changes in the working tree
into the store
◍ Model The data (ie state) Methods for accessing and modifying state View
Renders contents of model for user When model changes, view must
beupdated Controller Translates user actions (ie interactionswith view) into
operations on the model Example user actions: button clicks,
menuselections.
Answer: Explain model view controller
◍ Git History.
Answer: DAG of commits Each commit represents a complete snapshot of
the entire project
◍ Git Revision.
Answer: Just the manual editing of the file
◍ It is generated! (tool called rake) Golden rule: Never edit schema.rb directly
Instead, write a migration.
, Answer: Who writes schema.rb and what is the golden rule?
◍ Git Commit.
Answer: updates head and branch (permanent)identified by a hash
◍ A migration is Ruby code (a class) thatrepresents a change in schema Create
new tables (including columnnames and column types) Modify existing
tables (adding/removingcolumns, or changing associations) Delete ("drop")
existing tables.
Answer: What is a migration?
◍ Git Branch.
Answer: a pointer to a commit
◍ Schema is a version of the database. It is regenerated every time you do a
migration. Every change in schema means writing amigration.
Answer: What is the difference between a migration and a schema?
◍ The name is meaningful (starts with Add or Remove). ie $ rails g migration
AddNickNameToStudentnick:string.
Answer: What is important about migrations for table edits?
◍ GET, /students, Collection, index, list allPOST, /students, Collection, create,
show oneGET, /students/new, Collection, new, blank formGET, /students/3,
Member, show, show oneGET, /students/3/edit, Member, edit, filled
formPUT, /students/3, Member, update, show oneDELETE, /students/3,
Member, destroy, list all.
Answer: For the resource: students list the 7 routes that are included with the
action pack. Include HTTP verb, URL, Resource, Method, View
◍ Test boundary conditions eg 0, empty array, empty string Test different
categories of input eg positive, negative, and zero Test different categories
of behavior eg each menu option, each error message Test "unexpected"
input eg nil, last name includes a space Test representative "normal" input
eg random, reasonable values.
Answer: What are the best type of inputs for testing?
, ◍ how to add git branch.
Answer: git branch branchnamegit checkout branchname
◍ how to change git branch.
Answer: git checkout branchname
◍ HTML5 is a core technology markup language of the Internet used for
structuring and presenting content for the World Wide Web. Its core aims
have been to improve the language with support for the latest multimedia
while keeping it easily readable by humans and consistently understood by
computers and devices..
Answer: Describe HTML 5
◍ Git Head.
Answer: a pointer to a branch(where you're at)
◍ A professional front-end template that aids web developers in constructing
fast, adaptable, and robust websites or web applications utilizing a set of
HTML5-ready features and elements. Incorporates best practices, css styling
fixes, and cross browser compatibility..
Answer: Describe HTML5 Boilerplate
◍ Git Add.
Answer: adds the submission
◍ how to add (all steps).
Answer: git add name.rbgit commit -m "comment"git push remote_name
branch_name
◍ Git Checkout.
Answer: moves head to look at another branch
◍ Sinatra is a ruby gem that quickly creates a web application. It is a
framework like ruby on rails..
Answer: Describe Sinatra
◍ Git Merge.
Answer: brings two together, adds new commit
2026 QUESTIONS WITH CORRECT
ANSWERS GRADED A+
◍ Git Repository.
Answer: working tree + store + index
◍ Git Working Tree.
Answer: project itself Ordinary directory with files & subdirectories
◍ Git Store.
Answer: history of project
◍ Git Index.
Answer: virtual snapshot Gateway for moving changes in the working tree
into the store
◍ Model The data (ie state) Methods for accessing and modifying state View
Renders contents of model for user When model changes, view must
beupdated Controller Translates user actions (ie interactionswith view) into
operations on the model Example user actions: button clicks,
menuselections.
Answer: Explain model view controller
◍ Git History.
Answer: DAG of commits Each commit represents a complete snapshot of
the entire project
◍ Git Revision.
Answer: Just the manual editing of the file
◍ It is generated! (tool called rake) Golden rule: Never edit schema.rb directly
Instead, write a migration.
, Answer: Who writes schema.rb and what is the golden rule?
◍ Git Commit.
Answer: updates head and branch (permanent)identified by a hash
◍ A migration is Ruby code (a class) thatrepresents a change in schema Create
new tables (including columnnames and column types) Modify existing
tables (adding/removingcolumns, or changing associations) Delete ("drop")
existing tables.
Answer: What is a migration?
◍ Git Branch.
Answer: a pointer to a commit
◍ Schema is a version of the database. It is regenerated every time you do a
migration. Every change in schema means writing amigration.
Answer: What is the difference between a migration and a schema?
◍ The name is meaningful (starts with Add or Remove). ie $ rails g migration
AddNickNameToStudentnick:string.
Answer: What is important about migrations for table edits?
◍ GET, /students, Collection, index, list allPOST, /students, Collection, create,
show oneGET, /students/new, Collection, new, blank formGET, /students/3,
Member, show, show oneGET, /students/3/edit, Member, edit, filled
formPUT, /students/3, Member, update, show oneDELETE, /students/3,
Member, destroy, list all.
Answer: For the resource: students list the 7 routes that are included with the
action pack. Include HTTP verb, URL, Resource, Method, View
◍ Test boundary conditions eg 0, empty array, empty string Test different
categories of input eg positive, negative, and zero Test different categories
of behavior eg each menu option, each error message Test "unexpected"
input eg nil, last name includes a space Test representative "normal" input
eg random, reasonable values.
Answer: What are the best type of inputs for testing?
, ◍ how to add git branch.
Answer: git branch branchnamegit checkout branchname
◍ how to change git branch.
Answer: git checkout branchname
◍ HTML5 is a core technology markup language of the Internet used for
structuring and presenting content for the World Wide Web. Its core aims
have been to improve the language with support for the latest multimedia
while keeping it easily readable by humans and consistently understood by
computers and devices..
Answer: Describe HTML 5
◍ Git Head.
Answer: a pointer to a branch(where you're at)
◍ A professional front-end template that aids web developers in constructing
fast, adaptable, and robust websites or web applications utilizing a set of
HTML5-ready features and elements. Incorporates best practices, css styling
fixes, and cross browser compatibility..
Answer: Describe HTML5 Boilerplate
◍ Git Add.
Answer: adds the submission
◍ how to add (all steps).
Answer: git add name.rbgit commit -m "comment"git push remote_name
branch_name
◍ Git Checkout.
Answer: moves head to look at another branch
◍ Sinatra is a ruby gem that quickly creates a web application. It is a
framework like ruby on rails..
Answer: Describe Sinatra
◍ Git Merge.
Answer: brings two together, adds new commit