• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 2 fuera de 9 páginas
Examen

CSE 3901 Final EXAM QUESTIONS WITH ANSWERS

Document preview thumbnail
Vista previa 2 fuera de 9 páginas

CSE 3901 Final EXAM QUESTIONS WITH ANSWERS

Vista previa del contenido

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
|\ |\ |\ |\ |\

Información del documento

Subido en
25 de agosto de 2025
Número de páginas
9
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$21.49

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
EXAMSTUDYPLUG
4.5
(242)
Vendido
386
Seguidores
107
Artículos
20954
Última venta
1 día hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes