Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

CSE 3901 Midterm 2 Exam Study Guide – Static Sites, Testing, JavaScript, MVC & Rails with 115 questions and answers

Beoordeling
-
Verkocht
-
Pagina's
23
Cijfer
A
Geüpload op
17-02-2026
Geschreven in
2025/2026

This CSE 3901 Midterm 2 Exam Study Guide contains 115 detailed questions and answers covering core concepts in web development, testing frameworks, and software architecture. It is designed to help students prepare effectively for exams with clear explanations and practical examples. Key topics include: Static Site Generation (SSG): Middleman, ERb, SCSS, partials, layouts, and parameterized content. Testing Frameworks: MiniTest and RSpec, fixtures, test cases, assertions, setup/teardown, mocks, and stubs. JavaScript Essentials: Arrays, objects, DOM manipulation, event-driven programming, event listeners, and event handling phases. MVC Pattern: Model, View, Controller roles in Java, JavaScript, and Rails applications. Rails Framework: Directory structure, conventions, migrations, schema design, and database linking. Database Operations: CRUD (Create, Read, Update, Delete) and REST (Representational State Transfer). This guide is perfect for CSE 3901 students preparing for Midterm 2, offering a comprehensive review of static sites, testing, JavaScript, MVC, and Rails in one resource.

Meer zien Lees minder
Instelling
Vak

Voorbeeld van de inhoud

CSE 3901: MIDTERM 2 EXAM STUDY GUIDE



STATIC SITES SECTION: ---
1.What is static site generation?
Answer Using a program to produce HTML pages (kind of like compiling programs)
Middleman

2.what are the source files used in SSG?
Answer .md
.Erb
.scss

3.What is Middleman?
Answer 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



4.What are the three benefits of using a program for Static Site Generation?
Answer 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)






, CSE 3901: MIDTERM 2 EXAM STUDY GUIDE



5. Describe Visual Identity (code reuse/single POC) Motivation
Answer -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

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



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



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



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



10. How to customize arguments with a partial
Answer in the normal page when you call the partial: <%= partial "banner", :locals => {
:name => "Syllabus", :amount => 34 } %> in the partial file:


, CSE 3901: MIDTERM 2 EXAM STUDY GUIDE



<h3> ,%= name %> </h3>
<p> Costs <%= "$#{amount}.00" %></p>



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



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



13. How do you fix the issue of using a layout when each page needs a diff
<title>?

Answer 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"
---

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

Geschreven voor

Vak

Documentinformatie

Geüpload op
17 februari 2026
Aantal pagina's
23
Geschreven in
2025/2026
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$13.99
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper
Seller avatar
EliteExamVault

Maak kennis met de verkoper

Seller avatar
EliteExamVault Massachusetts Institute Of Technology
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
4
Lid sinds
8 maanden
Aantal volgers
1
Documenten
95
Laatst verkocht
5 maanden geleden
Elite Exam Vault

Welcome to my study guide empire where strategy meets clarity. I curate tiered, printable resources designed for learners, coaches, and creators across disciplines. Whether you're prepping for exams, building your own toolkit, or seeking emotional resonance in your workflow, my bundles are structured to help you win. Every product is crafted with mastery, impact, and conversion in mind. Let’s stack victories one guide at a time.

0.0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen