CSE 3901 - Midterm 1 Exam 2026 Exam Questions
with 100% Correct Answers | Verified | Updated
(Actual Exam) 2025\2026 LATEST VERSION!!
Save
Terms in this set (154)
a working tree + store + index github: what is a repository?
the project itself github: what is a working tree?
hidden directory (.git) in root github: what is a store?
directory of working tree
User never accesses .git directly
Store records project development
history
DAG of commits github: what is history?
Each commit represents a
complete snapshot of the entire
project
virtual snapshot stored in github: what is an index?
.git/index
https://quizlet.com/1133366741/cse-3901-midterm-1-exam-2026-exam-questions-with-100-correct-answers-verified-updated-actual-exam-20252026-l… 1/23
,1/21/26, 6:32 AM CSE 3901 - Midterm 1 Exam 2026 Exam Questions with 100% Correct Answers | Verified | Updated (Actual Exam) 2025\2026 LAT…
a pointer to a commit github: what is a branch?
git branch nameOfBranch github: command to create a new branch
git checkout fix github: change to branch titled 'fix'
git add --all . github: add and commit changes to local store
git commit
http://web.cse.ohio- github: problem on slide 42
state.edu/~giles/3901/lectures/le http://web.cse.ohio-
cture02.pdf state.edu/~giles/3901/lectures/lecture02.pdf
0, 1, 2, 3, 4 ruby: what is the following range 0..4
0, 1, 2, 3 ruby: what is the following range 0...4
Returns -1/0/1 if LHS is ruby: what does the <=> operator do?
smaller/equal/larger than RHS
-1 ruby: what does "cab" <=> "da" return?
1 ruby: what does "cab" <=> "ba" return?
i = 34, j = 35 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 what does the following statement do?
i = 10
25.times { | i | puts i }
https://quizlet.com/1133366741/cse-3901-midterm-1-exam-2026-exam-questions-with-100-correct-answers-verified-updated-actual-exam-20252026-l… 2/23
, 1/21/26, 6:32 AM CSE 3901 - Midterm 1 Exam 2026 Exam Questions with 100% Correct Answers | Verified | Updated (Actual Exam) 2025\2026 LAT…
"tania".length ruby: write a statement that returns the length
of your name
"exam".reverse ruby: write a statement that reverses the word
"exam"
puts "Tania".upcase ruby: write a statement that prints "Tania" in
uppercase
puts "Tania".downcase ruby: write a statement that prints "Tania" in
lowercase
puts "What is your first name?" ruby: write a statement that asks for the users
name = gets.chomp first name and prints the result in the following
puts "Your first name is # format: Your first name is (name). The name
{name.capitalize!}" should be capitalized
for i in 1..20 ruby: write a for loop that prints all even
next if i % 2 != 0 numbers between 1 and 20
puts i
end
num = 1 ruby: write a looping using until that prints
until num > 10 numbers 1 to 20
puts num
num += 1
end
https://quizlet.com/1133366741/cse-3901-midterm-1-exam-2026-exam-questions-with-100-correct-answers-verified-updated-actual-exam-20252026-l… 3/23