CSE 3901: FINAL UPDATED ACTUAL QUESTIONS AND
CORRECT ANSWERS
Question:
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
Answer:
Explain model view controller
Question:
http://web.cse.ohiostate.edu/~giles/3901/lectures/lecture1
6.pdf slide 4
Answer:
Draw an example of MVC
Question:
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?
Question:
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
Answer:
What is a migration?
Question:
Schema is a version of the database. It is regenerated every time you do a migration. Every change in
schema means writing a migration
Answer:
What is the difference between a migration and a schema?
Question:
The name is meaningful (starts with Add or Remove). ie $ rails g migration AddNickNameToStudent
nick:string
Answer:
What is important about migrations for table edits?
Question:
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 GET,
/students/3/edit, Member, edit, filled form PUT, /students/3, Member, update, show one DELETE,
/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
Question:
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?
Question:
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
Question:
A professional front-end template that aids web developers in constructing fast, adaptable, and robust
websites or web applications utilizing a set of HTML5ready features and elements. Incorporates best
practices, css styling fixes, and cross browser compatibility.
Answer:
Describe HTML5 Boilerplate
Question:
Sinatra is a ruby gem that quickly creates a web application. It is a framework like ruby on rails.
Answer:
Describe Sinatra
Question:
jQuery is a cross-platform JavaScript library designed to simplify the clientside scripting of HTML. The
jQuery library is a single JavaScript file containing all of its common DOM, event, effects, and Ajax
functions. It can be included within a web page by linking to a local copy or to one of the many copies
available from public servers.
Answer:
Describe jQuery
Question:
ie <script src="jquery.js"></script>
Answer:
Question:
Asynchronous JavaScript and XML. Basically, a way to update web pages without refreshing the entire
page.
CORRECT ANSWERS
Question:
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
Answer:
Explain model view controller
Question:
http://web.cse.ohiostate.edu/~giles/3901/lectures/lecture1
6.pdf slide 4
Answer:
Draw an example of MVC
Question:
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?
Question:
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
Answer:
What is a migration?
Question:
Schema is a version of the database. It is regenerated every time you do a migration. Every change in
schema means writing a migration
Answer:
What is the difference between a migration and a schema?
Question:
The name is meaningful (starts with Add or Remove). ie $ rails g migration AddNickNameToStudent
nick:string
Answer:
What is important about migrations for table edits?
Question:
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 GET,
/students/3/edit, Member, edit, filled form PUT, /students/3, Member, update, show one DELETE,
/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
Question:
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?
Question:
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
Question:
A professional front-end template that aids web developers in constructing fast, adaptable, and robust
websites or web applications utilizing a set of HTML5ready features and elements. Incorporates best
practices, css styling fixes, and cross browser compatibility.
Answer:
Describe HTML5 Boilerplate
Question:
Sinatra is a ruby gem that quickly creates a web application. It is a framework like ruby on rails.
Answer:
Describe Sinatra
Question:
jQuery is a cross-platform JavaScript library designed to simplify the clientside scripting of HTML. The
jQuery library is a single JavaScript file containing all of its common DOM, event, effects, and Ajax
functions. It can be included within a web page by linking to a local copy or to one of the many copies
available from public servers.
Answer:
Describe jQuery
Question:
ie <script src="jquery.js"></script>
Answer:
Question:
Asynchronous JavaScript and XML. Basically, a way to update web pages without refreshing the entire
page.