100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

CSE 3901 - Midterm 1 Questions with 100% Actual correct answers | verified | latest update | Graded A+ | Already Passed | Complete Solution

Rating
-
Sold
1
Pages
15
Grade
A
Uploaded on
26-06-2024
Written in
2023/2024

CSE 3901 - Midterm 1 Questions with 100% Actual correct answers | verified | latest update | Graded A+ | Already Passed | Complete Solution

Institution
CSE
Module
CSE









Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
June 26, 2024
Number of pages
15
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

CSE 3901 - Midterm 1
a working tree + store + index - ANS-github: what is a repository?

the project itself - ANS-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 - ANS-github: what is a store?

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

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

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

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

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

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

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

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

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

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

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

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

i = 34, j = 35 - ANS-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 - ANS-what does the following statement do?
i = 10
25.times { | i | puts i }

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

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

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

puts "Tania".downcase - ANS-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!}" - ANS-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 - ANS-ruby: write a for loop that prints all even numbers between 1 and 20

num = 1
until num > 10
puts num
num += 1
end - ANS-ruby: write a looping using until that prints numbers 1 to 20

Start of method
In the block
In the block
End of method - ANS-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'}

Get to know the seller

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.
DoctorHkane Havard School
View profile
Follow You need to be logged in order to follow users or courses
Sold
730
Member since
4 year
Number of followers
168
Documents
22453
Last sold
1 day ago

Explore my Stuvia collection for essential study aids: test banks, exams, summaries, and cases. With five years of expertise as an academic writer, I have honed my skills in crafting top-notch essays, exams, and research dissertations. My proficiency lies in producing well-structured and thoroughly researched content that meets academic standards. I am adept at handling various subjects and ensuring a seamless flow of ideas. Whether it's delivering compelling arguments in essays, creating challenging yet fair exam questions, or delving into in-depth research for dissertations, my experience equips me to excel in diverse academic writing tasks. I pride myself on meeting deadlines and maintaining the highest quality in every piece I produce. REACH ON iamnjokikelvin1@gmail

Read more Read less
4.6

386 reviews

5
308
4
29
3
21
2
10
1
18

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight 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 smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions