Shared Flashcard Set

Details

cs 101 exam 2
uiuc computer science cs 101
28
Computer Science
Undergraduate 2
04/01/2013

Additional Computer Science Flashcards

 


 

Cards

Term
cd (unix)
Definition
navigate through directories
Term
more (unix)
Definition
see the contents of a file
Term
pwd (unix)
Definition
print working directory
Term
ls (unix)
Definition
list contents of a directory
Term
CPU
Definition
1. CPU executes instructions stored in memory
2.The set of instructions for a CPU is known as machine language
3.Each CPU has its own specific machine language.
Term
;
Definition
every executable statement in C must be followed by a semicolon
Term
rm
Definition
deletes directory

rm -r directoryname

-r deletes all of its contents
Term
mkdir
Definition
makes directory

ex. mkdir ggggg

makes directory called ggggg
Term
mv
Definition
move function

ex.
mv myfile.c myfolder

moves myfile to myfolder
Term
if
Definition
if(x)

x>=1 its true
Term
%lf
Definition
double long float
Term
%c
Definition
character
Term
%f
Definition
float
Term
%i
Definition
integer
Term
switch
Definition
switch(1)

case 1
Term
scanf
Definition
scanf("%i", &a)

scans for integer and assign it to a
Term
gcc compiler
Definition
catches syntax error
Term
if((a && b) || c)
Definition
a and b must both be greater than zero or c be greater than zero
Term
int arr[] = {1, 9, 3}
Definition
int arr[1] = 1

int arr[2] = 9
Term
++i
Definition
i+1
Term
i++
Definition
checks i then adds 1
Term
for(i=0, i<5, ++i)
Definition
i=0 check if less than five if so add one
Term
strcmp()
Definition
returns zero if strings are equal
Term
+= , *=
Definition
x=2

x+=2

x=4 it adds then stores
Term
./
Definition
run
Term
switch statements
Definition
you must have break;

after each case
Term
do while
Definition
it will always run one time
Term
\0
Definition
ends every string

null character
Supporting users have an ad free experience!