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 1 Exam ||Verified Exam!!|| Most Recent Exam 2026 Actual Complete Real Exam Questions And Correct Answers (Verified Answers) Already Graded A+ | Newest Exam!!!

Rating
-
Sold
-
Pages
37
Grade
A+
Uploaded on
25-01-2026
Written in
2025/2026

CSE 3901 - Midterm 1 Exam ||Verified Exam!!|| Most Recent Exam 2026 Actual Complete Real Exam Questions And Correct Answers (Verified Answers) Already Graded A+ | Newest Exam!!!

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 25, 2026
Number of pages
37
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

1|Page


CSE 3901 - Midterm 1 Exam ||Verified Exam!!|| Most
Recent Exam 2026 Actual Complete Real Exam
Questions And Correct Answers (Verified Answers)
Already Graded A+ | Newest Exam!!!


github: what is a repository? - Answer-a working tree +
store + index


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


github: what is a store? - Answer-hidden directory (.git) in
root directory of working tree


User never accesses .git directly


Store records project development history


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

,2|Page


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


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


github: command to create a new branch - Answer-git
branch nameOfBranch


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


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


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


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

,3|Page


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


ruby: what does the <=> operator do? - Answer-Returns -
1/0/1 if LHS is smaller/equal/larger than RHS


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


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


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? - Answer-i = 34, j = 35


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


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

, 4|Page


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


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


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


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 -
Answer-puts "What is your first name?"
name = gets.chomp
puts "Your first name is #{name.capitalize!}"


ruby: write a for loop that prints all even numbers between
1 and 20 - Answer-for i in 1..20
next if i % 2 != 0
puts i
end
$25.99
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
TrustedExams

Get to know the seller

Seller avatar
TrustedExams Chamberlain College Of Nursing
View profile
Follow You need to be logged in order to follow users or courses
Sold
New on Stuvia
Member since
3 weeks
Number of followers
0
Documents
458
Last sold
-
EXCELLENT TUTOR

Welcome to my Stuvia store! I provide high-quality exam materials, including practice exams, past questions, and detailed solutions. All content is carefully prepared, accurate, and aligned with course requirements to help students revise effectively, boost confidence, and perform better in exams.

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

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