100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

CSE 3901 MIDTERM 2 EXAM QUESTIONS AND ANSWERS 2026

Rating
-
Sold
-
Pages
22
Grade
A+
Uploaded on
21-01-2026
Written in
2025/2026

CSE 3901 MIDTERM 2 EXAM QUESTIONS AND ANSWERS 2026

Institution
CSE 3901
Course
CSE 3901










Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
CSE 3901
Course
CSE 3901

Document information

Uploaded on
January 21, 2026
Number of pages
22
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

CSE 3901 MIDTERM 2 EXAM

STATIC SITES SECTION


What is static site generation? - ANSWERS-Using a program to
produce HTML pages
(kind of like compiling programs)
Middleman


what are the source files used in SSG? - ANSWERS-.md
.erb
.scss


What is Middleman? - ANSWERS-A ruby Gem
the project is its own directory
lots of subdirectories for css, images, etc
Compile the source files like a program
can then copy to any location


What are the three benefits of using a program for Static Site
Generation? - ANSWERS-1. Code reuse and single point of control
(visual identity)
2. Authoring of content in a language that is more human-friendly
(improved syntax)

,3. Parameterized generation of markup and content (content
generation)


Describe Visual Identity (code reuse/single POC) Motivation -
ANSWERS--Having common headers and footers and making the
whole website have a base design for every page
-duplicated code ruins single POC
-Solution: putting common HTML in one file (a partial) and every
page includes it


What is ERb? - ANSWERS-Embedded Ruby
-things like <% code %> <%= expr %> and <%# text %>


How to generate a site - ANSWERS-save source files as html.erb
>> bundle exec middleman build
this then makes them .html


what is a partial - ANSWERS-a document fragment included in other
documents
-include in template as <%= partial "navigation" %>


what is special about naming a partial? - ANSWERS-they always start
with _ and end in .erb still (no html)


How to customize arguments with a partial - ANSWERS-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 - ANSWERS-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 Layout.erb? -
ANSWERS-<%= yield =>


How do you fix the issue of using a layout when each page needs a
diff <title>? - ANSWERS-Ruby variable current_page
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"
---

Get to know the seller

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.
Teacher101 Teachme2-tutor
View profile
Follow You need to be logged in order to follow users or courses
Sold
392
Member since
1 year
Number of followers
71
Documents
9209
Last sold
11 hours ago

Quality is my middle name.....100% ...my policy is to create and nurture people of quality by continuous education and training.....i guaranteed good grades 100% Feel free to get in touch through inbox...anything regarding help or issue with the exams posted... Finally after purchase please leave a good rating if satisfied with my work.... All the best as we continue working to improve ourselves through education

4.6

265 reviews

5
217
4
14
3
24
2
3
1
7

Recently viewed by you

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

Frequently asked questions