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 4 out of 37 pages
Exam (elaborations)

CSE 3901 FINAL PAPER REVIEW SHEET UPDATED QUESTIONS AND SOLUTIONS

Document preview thumbnail
Preview 4 out of 37 pages

CSE 3901 FINAL PAPER REVIEW SHEET UPDATED QUESTIONS AND SOLUTIONS

Content preview

CSE 3901 FINAL PAPER REVIEW SHEET
UPDATED QUESTIONS AND SOLUTIONS

●● the project itself
Answer: github: what is a working tree?


●● hidden directory (.git) in root directory of working tree


User never accesses .git directly


Store records project development history
Answer: github: what is a store?


●● DAG of commits
Each commit represents a complete snapshot of the entire project
Answer: github: what is history?


●● virtual snapshot stored in .git/index
Answer: github: what is an index?


●● a pointer to a commit
Answer: github: what is a branch?

,●● git branch nameOfBranch
Answer: github: command to create a new branch


●● git checkout fix
Answer: github: change to branch titled 'fix'


●● git add --all .
git commit
Answer: github: add and commit changes to local store


●● http://web.cse.ohio-state.edu/~giles/3901/lectures/lecture02.pdf
Answer: github: problem on slide 42 http://web.cse.ohio-
state.edu/~giles/3901/lectures/lecture02.pdf


●● 0, 1, 2, 3, 4
Answer: ruby: what is the following range 0..4


●● 0, 1, 2, 3
Answer: ruby: what is the following range 0...4


●● Returns -1/0/1 if LHS is smaller/equal/larger than RHS

,Answer: ruby: what does the <=> operator do?


●● -1
Answer: ruby: what does "cab" <=> "da" return?


●● 1
Answer: ruby: what does "cab" <=> "ba" return?


●● i = 34, j = 35
Answer: i = 34
j = i # i and j are aliases
j = j + 1 # does this increment i too?
what is the value of i and j?


●● prints 0 to 24
Answer: what does the following statement do?
i = 10
25.times { | i | puts i }


●● "tania".length
Answer: ruby: write a statement that returns the length of your name

, ●● "exam".reverse
Answer: ruby: write a statement that reverses the word "exam"


●● puts "Tania".upcase
Answer: ruby: write a statement that prints "Tania" in uppercase


●● puts "Tania".downcase
Answer: ruby: write a statement that prints "Tania" in lowercase


●● puts "What is your first name?"
name = gets.chomp
puts "Your first name is #{name.capitalize!}"
Answer: ruby: write a statement that asks for the users first name and
prints the result in the following format: Your first name is (name). The
name should be capitalized


●● for i in 1..20
next if i % 2 != 0
puts i
end
Answer: ruby: write a for loop that prints all even numbers between 1
and 20

Document information

Uploaded on
August 25, 2026
Number of pages
37
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$14.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.
TopGradeInsider
4.2
(13)
Sold
165
Followers
2
Items
55375
Last sold
10 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