ECEN 224 Flashcards

1
Q

what is big eddian vs little eddian

A

big eddian has the most significant digits first

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what are the standard C datatypes

A

char 1 byte
int 4 byte
short 2 byte
long 8 bytes
float 4 bytes
double 8 bytes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what are the values of 0,NAN, infinity, and denormalized in IEEE

A

expo mantissa value
0 0 exact 0
255 0 Infinity
0 not 0 denormalised
255 not 0 Not a number (NAN)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

how long is the exponent in IEE 32 bit na 64

A

8 & 11

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what does gcc stand for

A

GNU compiler collection

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

%d

A

digit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

%c

A

character type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

%f

A

float type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

%o

A

octal representation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

%s

A

string

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

%u

A

unsigned int

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what does pwd do in the terminal

A

shows current directory path

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

what does cat do in the terminal

A

Concatenate and print, displays contents of a file printed in the terminal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

what does chmod do in the terminal

A

changes permissions on the can read write and execute the file, in that order

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

When to use standard I/O

A

When working with disk files or terminal characters
* When buffering is advantageous (transferring small sizes)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Binary semaphore:

A

semaphore whose value is always 0 or 1

17
Q

Mutex

A

binary semaphore used for mutual exclusion
* wait operation: “locking” the mutex
* post operation: “unlocking” or “releasing” the mutex
* “Holding” a mutex: locked and not yet unlocked

18
Q

Counting semaphore

A

used as a counter for set of available resources

19
Q

range of ephemeral ports

A

49152–65535

20
Q

Ephemeral port:

A

Assigned automatically by client kernel when client makes a connection
request.

21
Q

Well-known port:

A

Associated with some service provided by a server

22
Q

connections.

A

communication sending streams of bytes over it

23
Q

what are the bias amounts for IEEE

A

127 and 1023