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

Rutgers Huang Computer Architecture Midterm Question and answers already passed

Rating
-
Sold
-
Pages
13
Grade
A+
Uploaded on
02-04-2025
Written in
2024/2025

Rutgers Huang Computer Architecture Midterm Question and answers already passed What are the Linux commands that were taught in class and what do they mean? - correct answer wget: download a file from the internet cd: change the working directory cp: copy files and directories mkdir: make empty directories tar: work with .tar archive files of directories mv: move or rename files scp: copy files, usually between two computers gcc: compile a program including ones written in C ls: list directory contents touch: create a blank file if it does not already exist; if file does exist update its modification timestamp to the present time pwd: print name of current/working directory hostname: show the name of the computer rm: delete files or directories ssh: connect to a remote machine diff: compare two files line by line (assuming they are text files) history: show a list of most recently entered commands top: display a table of processes (i.e., programs) being run by users of the computer man: show the man

Show more Read less
Institution
Rutgers Huang Computer Architecture
Course
Rutgers Huang Computer Architecture









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

Written for

Institution
Rutgers Huang Computer Architecture
Course
Rutgers Huang Computer Architecture

Document information

Uploaded on
April 2, 2025
Number of pages
13
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

Rutgers Huang Computer Architecture
Midterm Question and answers already
passed
What are the Linux commands that were taught in class and what do they
mean? - correct answer ✔wget: download a file from the internet
cd: change the working directory
cp: copy files and directories
mkdir: make empty directories
tar: work with .tar archive files of directories
mv: move or rename files
scp: copy files, usually between two computers
gcc: compile a program including ones written in C
ls: list directory contents
touch: create a blank file if it does not already exist; if file does exist update its
modification timestamp to the present time
pwd: print name of current/working directory
hostname: show the name of the computer
rm: delete files or directories
ssh: connect to a remote machine
diff: compare two files line by line (assuming they are text files)
history: show a list of most recently entered commands
top: display a table of processes (i.e., programs) being run by users of the
computer
man: show the manual documentation for a command
grep: search for text in files
make: invoke Makefile to compile a program

, What is the format string in printf(char* format, args)? - correct answer ✔%d:
integer
%ld: long integer
%c: character
%s: string
%f: float
%p: pointer


After breaking down gcc -Wall -Werror -fsanitize=address -std=c99 -o
pythagorean pythagorean.c -lm, what does each part mean? - correct answer
✔gcc: GNU C Complier
-Wall -Werror: enable helpful warnings
-fsanitize=address: enable memory checking
-std=c99: Set C standard version number
-o pythagorean: output binary
pythagorean.c: source file
-lm: link the math library implementation


What are pointers? What are Dereference and Reference? - correct answer
✔A pointer is a type of variable that stores the address of another variable in
memory
- Allows us to indirectly access variables


Declaration: int*, double*, char*, etc


Pointer Operations:
-Dereference: (*p) - returns the value pointed by p

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.
Academia199 Chamberlain College Of Nursing
View profile
Follow You need to be logged in order to follow users or courses
Sold
349
Member since
3 year
Number of followers
208
Documents
18895
Last sold
1 day ago

3.9

50 reviews

5
27
4
6
3
7
2
3
1
7

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