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

CSE 2421 MIDTERM 1 EXAM QUESTIONS AND ANSWERS

Document preview thumbnail
Preview 4 out of 70 pages

CSE 2421 MIDTERM 1 EXAM QUESTIONS AND ANSWERS

Content preview

CSE 2421 MIDTERM 1 LATEST
EXAM QUESTIONS AND
ANSWERS 2026 - 2027
UNIX - ANSWERS--Proprietary
-AT&T, Bell Labs
-Bourne Shell
-Solaris, macOS, HP-UX
-Not portable


Linux - ANSWERS--Open source
-Linus Torvald
-BASH(Bourne Again Shell)
-Debian, Ubuntu, Fedora, Android
-Portable


What made UNIX different from all other commercially available
software systems when it was initially developed? - ANSWERS-UNIX
was different from other software's at the time because it only needed
one portion of code changed per system called the kernel. Originally,
OSs had to be completely rewritten for every system.



END OF
PAGE
1

, CSE 2421 MIDTERM 1 LATEST
EXAM QUESTIONS AND
ANSWERS 2026 - 2027
What was the C programming language initially created? - ANSWERS-
C was originally developed to help create the UNIX OS and its utilities


How is white space (tabs/newlines/returns, spaces, etc.) handled within a
C program file? - ANSWERS-White spaces are generally ignored by the
C compiler. I believe this is a good thing because all white space adds is
readability for humans


What does the command cd cse2421 do? - ANSWERS-Changes the
current working directory to cse2421


What does the command cd ~ do? - ANSWERS-Changes the current
working directory to your home-directory


What does the command wc lab1.c do? - ANSWERS-Counts number of
lines/words/characters in a file


What does the man command allow you to do? - ANSWERS-Reads the
online manual for the current version of a command


END OF
PAGE
2

, CSE 2421 MIDTERM 1 LATEST
EXAM QUESTIONS AND
ANSWERS 2026 - 2027
What does the command mv file1 file2 do? - ANSWERS-Changes the
name of file1 to file2


What is the format for the mv command? - ANSWERS-mv [options]
source destination


What does an asterisk(*) specify in a file name? - ANSWERS-The
asterisk specifies all files


Can the second parameter of a mv command legally be a directory
name? - ANSWERS-Yes


If you put an & character at the end of your command, what happens? -
ANSWERS-Linux opens a new command window and launches the
command in that window


Why aren't open source systems always free? - ANSWERS-Corporate
support versions and specially modified versions cost a premium
Free as in freedom, not free

END OF
PAGE
3

, CSE 2421 MIDTERM 1 LATEST
EXAM QUESTIONS AND
ANSWERS 2026 - 2027

Differences between C and Java - ANSWERS--C does not support the
notion of classes or objects, in an object-orientated sense
-C does not support encapsulation as all memory is
modifiable/executable
-does not support inheritance
-procedure-orientated, not object-orientated
-compiled, not interpreted like java
-C has functions, java has methods
-C is not portable(platform dependent), where java is portable
-developed in early 70s vs 1995 for java


Compile time errors (static errors) - ANSWERS-Errors found during
compilation
e.g. syntax errors


Run time errors (dynamic errors) - ANSWERS-Errors found while
running the program

END OF
PAGE
4

Document information

Uploaded on
September 9, 2026
Number of pages
70
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$18.49

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.
Teacher101
4.6
(277)
Sold
522
Followers
74
Items
11495
Last sold
3 days 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