• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 9 pages
Exam (elaborations)

CSE 3901 Final EXAM QUESTIONS WITH ANSWERS

Document preview thumbnail
Preview 2 out of 9 pages

CSE 3901 Final EXAM QUESTIONS WITH ANSWERS

Content preview

CSE 3901: Final EXAM QUESTIONS
|\ |\ |\ |\ |\




WITH ANSWERS |\




Explain model view controller - CORRECT ANSWERS ✔✔Model
|\ |\ |\ |\ |\ |\ |\




|\ The data (ie state)
|\ |\ |\




|\ Methods for accessing and modifying state
|\ |\ |\ |\ |\




|\ View
|\ Renders contents of model for user
|\ |\ |\ |\ |\




|\ When model changes, view must be
|\ |\ |\ |\ |\




updated
|\ Controller
|\ Translates user actions (ie interactions |\ |\ |\ |\




with view) into operations on the model
|\ |\ |\ |\ |\ |\




|\ Example user actions: button clicks, menu
|\ |\ |\ |\ |\




selections


Draw an example of MVC - CORRECT ANSWERS
|\ |\ |\ |\ |\ |\ |\ |\


✔✔http://web.cse.ohio-state.edu/~giles/3901/lectures/lecture16.p
df slide 4
|\ |\




Who writes schema.rb and what is the golden rule? - CORRECT
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\


ANSWERS ✔✔It is generated! (tool called rake) |\ |\ |\ |\ |\ |\




|\ Golden rule: Never edit schema.rb directly
|\ |\ |\ |\ |\




|\ Instead, write a migration |\ |\ |\

, What is a migration? - CORRECT ANSWERS ✔✔A migration is
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\


Ruby code (a class) that
|\ |\ |\ |\




represents a change in schema |\ |\ |\ |\




|\ Create new tables (including column
|\ |\ |\ |\




names and column types) |\ |\ |\




|\ Modify existing tables (adding/removing
|\ |\ |\




columns, or changing associations) |\ |\ |\




|\ Delete ("drop") existing tables
|\ |\ |\




What is the difference between a migration and a schema? -
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\


CORRECT ANSWERS ✔✔Schema is a version of the database. It is
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\


regenerated every time you do a migration. Every change in
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\


schema means writing a |\ |\ |\




migration


What is important about migrations for table edits? - CORRECT
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\


ANSWERS ✔✔The name is meaningful (starts with Add or |\ |\ |\ |\ |\ |\ |\ |\ |\


Remove). ie $ rails g migration AddNickNameToStudent
|\ |\ |\ |\ |\ |\




nick:string


For the resource: students list the 7 routes that are included with
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\


the action pack. Include HTTP verb, URL, Resource, Method, View
|\ |\ |\ |\ |\ |\ |\ |\ |\


- CORRECT ANSWERS ✔✔GET, /students, Collection, index, list all
|\ |\ |\ |\ |\ |\ |\ |\ |\




POST, /students, Collection, create, show one
|\ |\ |\ |\ |\




GET, /students/new, Collection, new, blank form
|\ |\ |\ |\ |\




GET, /students/3, Member, show, show one
|\ |\ |\ |\ |\

Document information

Uploaded on
August 25, 2025
Number of pages
9
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$21.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
EXAMSTUDYPLUG
4.5
(242)
Sold
386
Followers
107
Items
20954
Last sold
1 day ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions