Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 8 pages
Exam (elaborations)

CSE 3901 Web Applications Mock Midterm 2 Exam Questions & Answers PDF | Complete Exam Review | Latest 2026–2027

Document preview thumbnail
Preview 2 out of 8 pages

Prepare for CSE 3901 – Project: Design, Development, and Documentation of Web Applications with this comprehensive Midterm 2 Exam Questions & Answers PDF, designed for Ohio State University students preparing for their second individual examination. CSE 3901 is an intensive web-application course covering client-side and server-side scripting, web application design, development, documentation, and programming maturity. Available CSE 3901 course resources and prior student discussions indicate that assessment content can include practical web-development concepts such as Ruby, JavaScript, HTML, CSS, Git and version control, HTTP, web architecture, MVC/design patterns, client-server concepts, and code tracing. This practice resource is ideal for midterm preparation, coursework review, and practice testing, helping reinforce essential web-application concepts, strengthen programming and technical reasoning skills, and improve readiness for the CSE 3901 Midterm 2 examination. A prior publicly indexed CSE 3901 Midterm 2 practice resource also confirms that Midterm 2-specific preparation materials are available for this course.

Content preview

CSE 3901 Midterm 2 Exam
How to customize arguments with a partial in the normal page when you call the partial:
<%= partial "banner", :locals => { :name => "Syllabus", :amount => 34 } %>


in the partial file:
<h3> ,%= name %> </h3>
<p> Costs <%= "$#{amount}.00" %></p>


What is Layout It is a file that can make a consistent structure across every page in a website




How do you label where there's page specific stuff in <%= yield =>
Layout.erb?


How do you fix the issue of using a layout when each Ruby variable current_page
page needs a diff <title>? ie: current_page.path


So in the actual page file you put:
<title><%= current_page.data.title %> </title>


and in the layout.erb:
---
title: "Contact Info"
---


What is the main difference in syntax when using Not having to use tags because that part is in layout
middleman?


What are some common plain text conventions? blank lines between paragraphs
Underlining: - or =
Emphasize: words, _words_, *words*
Links: [text](url)
unordered lists: * or -
ordered lists: 1. 2. 3.


What formalizes these shortcuts? Markdown


What are CSS magic numbers? They are basically variables so you don't have to keep writing the same hex for
a color for example


How do you declare a CSS magic number? $primary: #ff14a6


then use:
h1 {color: $primary;}


What does SASS allow for CSS? declaring diff css styles in one {} under a class name

, CSE 3901 Midterm 2 Exam
How can you solve the problem of you have files in subdirectory data/ that define variables
parameterized/repeated content? ie #data/dates.yml
term: "Spring 2017"
then:
<% data.dates.term %>




how to solve the problem of repeated structure like use code to iterate over an array and add each row
rows in a table <% meetings.each do |meet| %>
<tr><td> <%= meet.date %> </td>...


what does link_to do? its a helper function for a href
<%= link_to('About us', '/about.html') %>
#=> <a href='/about.html'>About us</a>


TESTING FRAMEWORKS SECTION ---


What are two different testing libraries for Ruby? MiniTest
RSpec


Describe MiniTest -comes built in
-looks like JUnit


Describe RSPec -installed as a library (a gem)
-look different from JUnit and Ruby


What is different about RSpec's view? test cases define expected behavior-- they are the spec


What do you have to require for MiniTest? runner and UUT


require 'minitest/autorun' #the test runner
require 'card' #the UUT


What is Test fixture in MiniTest Tests subclass of MiniTest::Test
class TestCard < MiniTest::Test




What is Test case in MiniTest? a method in the fixture

Document information

Uploaded on
August 7, 2026
Number of pages
8
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
CA$20.07

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.
Testcenter111
4.1
(46)
Sold
185
Followers
4
Items
4853
Last sold
2 hours 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