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
Exam (elaborations)

CSE 3901 STUDY GUIDE 2026 EXAM MOST TESTED QUESTIONS AND VERIFIED SOLUTIONS

Rating
-
Sold
-
Pages
19
Grade
A+
Uploaded on
21-01-2026
Written in
2025/2026

CSE 3901 STUDY GUIDE 2026 EXAM MOST TESTED QUESTIONS AND VERIFIED SOLUTIONS

Institution
Course

Content preview

CSE 3901 STUDY GUIDE 2026 EXAM MOST TESTED
QUESTIONS AND VERIFIED SOLUTIONS

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

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

num = 1

until num > 10

puts num

num += 1

end - ANSWER-ruby: write a looping using until that prints numbers 1 to 20

Start of method

In the block

, In the block

End of method - ANSWER-What does the following code output?

def call_block

puts 'Start of method'

yield

yield

puts 'End of method'

end

call_block {puts 'In the block'}

equal? : Checks if the object id is the same (reference value)



eql? : True if the receiver and argument have both the same type and equal values (same hash
key).



=== : tests range inclusion



== : Checks if the value of two operands are equal or not - ANSWER-What's the difference
between equal?, eql?, ===, and == ?

10^20 - ANSWER-a = 10

b = 20

What is the return value for a**b?

position = "cat o' 9 tails" =~ /a/

puts position - ANSWER-write a statement that prints the index of the first occurrence of 'a' in
the string "cat o' 9 tails"

FixNum, Float, Rational, Complex - ANSWER-what are the different number types in ruby?

#=> expected - ANSWER-what is the ruby convention to indicate an expected result as a
comment on a line of code?

Written for

Course

Document information

Uploaded on
January 21, 2026
Number of pages
19
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$28.99
Get access to the full document:

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

Get to know the seller
Seller avatar
donmartincruz

Get to know the seller

Seller avatar
donmartincruz Mc arthy
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
9 months
Number of followers
0
Documents
152
Last sold
-

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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions