• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 39 pages
Exam (elaborations)

CSE 3901 Midterm 1 EXAM QUEDTIONS WITH ANSWERS

Document preview thumbnail
Preview 4 out of 39 pages

CSE 3901 Midterm 1 EXAM QUEDTIONS WITH ANSWERS

Content preview

CSE 3901 Midterm 1 EXAM
|\ |\ |\ |\ |\




QUEDTIONS WITH ANSWERS |\ |\




Git Repository - CORRECT ANSWERS ✔✔working tree + store +
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\


index


Git Working Tree - CORRECT ANSWERS ✔✔project itself
|\ |\ |\ |\ |\ |\ |\ |\




Ordinary directory with files & subdirectories
|\ |\ |\ |\ |\




Git Store - CORRECT ANSWERS ✔✔history of project
|\ |\ |\ |\ |\ |\ |\




Git Index - CORRECT ANSWERS ✔✔virtual snapshot
|\ |\ |\ |\ |\ |\ |\




Gateway for moving changes in the working tree into the store
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\




Git History - CORRECT ANSWERS ✔✔DAG of commits
|\ |\ |\ |\ |\ |\ |\ |\




Each commit represents a complete snapshot of the entire
|\ |\ |\ |\ |\ |\ |\ |\ |\


project


Git Revision - CORRECT ANSWERS ✔✔Just the manual editing of
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\


the file
|\

,Git Commit - CORRECT ANSWERS ✔✔updates head and branch
|\ |\ |\ |\ |\ |\ |\ |\ |\


(permanent)


identified by a hash |\ |\ |\




Git Branch - CORRECT ANSWERS ✔✔a pointer to a commit
|\ |\ |\ |\ |\ |\ |\ |\ |\




how to add git branch - CORRECT ANSWERS ✔✔git branch
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\


branchname
git checkout branchname
|\ |\




how to change git branch - CORRECT ANSWERS ✔✔git checkout
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\


branchname


Git Head - CORRECT ANSWERS ✔✔a pointer to a branch
|\ |\ |\ |\ |\ |\ |\ |\ |\




(where you're at)
|\ |\




Git Add - CORRECT ANSWERS ✔✔adds the submission
|\ |\ |\ |\ |\ |\ |\




how to add (all steps) - CORRECT ANSWERS ✔✔git add name.rb
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\




git commit -m "comment"
|\ |\ |\




git push remote_name branch_name
|\ |\ |\




Git Checkout - CORRECT ANSWERS ✔✔moves head to look at
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\


another branch |\

,Git Merge - CORRECT ANSWERS ✔✔brings two together, adds
|\ |\ |\ |\ |\ |\ |\ |\ |\


new commit |\




Git Fast-Forward Merge - CORRECT ANSWERS ✔✔bring old into
|\ |\ |\ |\ |\ |\ |\ |\ |\


new head |\




Git Fetch - CORRECT ANSWERS ✔✔bring in commits that given
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\


user lacks |\




Git Push - CORRECT ANSWERS ✔✔opposite to fetch. Give
|\ |\ |\ |\ |\ |\ |\ |\ |\


someone a change |\ |\




Git Pull - CORRECT ANSWERS ✔✔combines fetch and merge
|\ |\ |\ |\ |\ |\ |\ |\




Git No Conflict Merge - CORRECT ANSWERS ✔✔Automatically
|\ |\ |\ |\ |\ |\ |\ |\


commits


Distributed version control - CORRECT ANSWERS ✔✔Multiple|\ |\ |\ |\ |\ |\ |\


people, distributed across network
|\ |\ |\ |\




- each person has their own repository
|\ |\ |\ |\ |\ |\




- units of data movement: changesets
|\ |\ |\ |\ |\




Number of repositories per team - CORRECT ANSWERS ✔✔n+1.
|\ |\ |\ |\ |\ |\ |\ |\




1 shared, 1 local for each
|\ |\ |\ |\ |\

, Discard Changes in Git : reset - CORRECT ANSWERS ✔✔git reset
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\


--hard
|\




git clean --dry-run
|\ |\




git clean --force
|\ |\




Discard Commit in Git : reset - CORRECT ANSWERS ✔✔git reset --
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\


hard HEAD~1 |\




Strongly Typed Language - CORRECT ANSWERS ✔✔Classes
|\ |\ |\ |\ |\ |\ |\


determine valid operations |\ |\




Interpreted Program - CORRECT ANSWERS ✔✔Run a program
|\ |\ |\ |\ |\ |\ |\ |\


directly, without compiling
|\ |\




pro: |\




platform independence |\




read-eval-print loop (REPL) |\ |\




reflection


con:
speed
later error detection
|\ |\




Dynamically typed - CORRECT ANSWERS ✔✔objects have types,
|\ |\ |\ |\ |\ |\ |\ |\


variables don't |\

Document information

Uploaded on
August 25, 2025
Number of pages
39
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$22.99

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.
EXAMSTUDYPLUG
4.5
(242)
Sold
386
Followers
107
Items
20954
Last sold
1 day 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